aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransible_admin <capsul@cyberia.club>2021-02-01 16:55:39 +0000
committeransible_admin <capsul@cyberia.club>2021-02-01 16:55:39 +0000
commitb41d9b9405e036ec61a79dba8c69b2cc18c5379c (patch)
tree94f2d4925eed6f6a27d0daac241cd070f1f2cf0d
parente3fcb7ab4dadf3e17cba8f674edfa3f78a632035 (diff)
downloadops-handbook-b41d9b9405e036ec61a79dba8c69b2cc18c5379c.tar.gz
ops-handbook-b41d9b9405e036ec61a79dba8c69b2cc18c5379c.tar.bz2
fix all monthly jobs, add coreos
-rw-r--r--builds/monthly/capsul-centos-7.yaml4
-rw-r--r--builds/monthly/capsul-centos-8.yaml4
-rw-r--r--builds/monthly/capsul-coreos.yaml35
-rw-r--r--builds/monthly/capsul-debian-10.yaml4
-rw-r--r--builds/monthly/capsul-openbsd-6.8.yaml4
-rw-r--r--builds/monthly/capsul-ubuntu-20.04.yaml4
6 files changed, 45 insertions, 10 deletions
diff --git a/builds/monthly/capsul-centos-7.yaml b/builds/monthly/capsul-centos-7.yaml
index c43b1ba..4ca7e26 100644
--- a/builds/monthly/capsul-centos-7.yaml
+++ b/builds/monthly/capsul-centos-7.yaml
@@ -17,8 +17,8 @@ triggers:
to: ops <ops@cyberia.club>
tasks:
- genimg: |
- cd capsul-images/centos
- sudo ./build $version
+ cd capsul-images/centos
+ sudo ./build $version
- deploy: |
cd capsul-images/centos
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
diff --git a/builds/monthly/capsul-centos-8.yaml b/builds/monthly/capsul-centos-8.yaml
index f6c792d..ee90e25 100644
--- a/builds/monthly/capsul-centos-8.yaml
+++ b/builds/monthly/capsul-centos-8.yaml
@@ -17,8 +17,8 @@ triggers:
to: ops <ops@cyberia.club>
tasks:
- genimg: |
- cd capsul-images/centos
- sudo ./build $version
+ cd capsul-images/centos
+ sudo ./build $version
- deploy: |
cd capsul-images/centos
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
diff --git a/builds/monthly/capsul-coreos.yaml b/builds/monthly/capsul-coreos.yaml
new file mode 100644
index 0000000..23040d6
--- /dev/null
+++ b/builds/monthly/capsul-coreos.yaml
@@ -0,0 +1,35 @@
+# this builds the capsul coreos template img
+image: alpine/edge
+packages:
+ - rsync
+ - xz
+environment:
+ version: stable
+ slaves:
+ - deploy@baikal.cyberia.club
+sources:
+ - https://git.cyberia.club/services/capsul-images
+secrets:
+ # deploy@baikal.cyberia.club
+ - aac6b8d1-65c1-4d7f-862f-094716b800e3
+triggers:
+ - action: email
+ condition: failure
+ to: ops <j3s@c3f.net>
+tasks:
+ - genimg: |
+ cd capsul-images/coreos
+ sudo ./build $version
+ - deploy: |
+ cd capsul-images/coreos
+ echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+ for server in "${slaves[@]}"
+ do
+ ssh $server mkdir -p /tank/img/coreos/$version
+ rsync -rzP $version/root.img.qcow2 \
+ ${server}:/tank/img/coreos/$version/new_root.img.qcow2
+ ssh $server \
+ mv /tank/img/coreos/$version/new_root.img.qcow2 \
+ /tank/img/coreos/$version/root.img.qcow2
+ done
+
diff --git a/builds/monthly/capsul-debian-10.yaml b/builds/monthly/capsul-debian-10.yaml
index abe95bb..7c2b115 100644
--- a/builds/monthly/capsul-debian-10.yaml
+++ b/builds/monthly/capsul-debian-10.yaml
@@ -17,8 +17,8 @@ triggers:
to: ops <ops@cyberia.club>
tasks:
- genimg: |
- cd capsul-images/debian
- sudo ./build $version
+ cd capsul-images/debian
+ sudo ./build $version
- deploy: |
cd capsul-images/debian
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
diff --git a/builds/monthly/capsul-openbsd-6.8.yaml b/builds/monthly/capsul-openbsd-6.8.yaml
index 5551e2b..b0cb9ec 100644
--- a/builds/monthly/capsul-openbsd-6.8.yaml
+++ b/builds/monthly/capsul-openbsd-6.8.yaml
@@ -20,8 +20,8 @@ triggers:
to: ops <ops@cyberia.club>
tasks:
- genimg:
- cd capsul-images/openbsd
- sudo ./build $version
+ cd capsul-images/openbsd
+ sudo ./build $version
- deploy: |
cd capsul-images/openbsd
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
diff --git a/builds/monthly/capsul-ubuntu-20.04.yaml b/builds/monthly/capsul-ubuntu-20.04.yaml
index 30a5653..51ff0e6 100644
--- a/builds/monthly/capsul-ubuntu-20.04.yaml
+++ b/builds/monthly/capsul-ubuntu-20.04.yaml
@@ -17,8 +17,8 @@ triggers:
to: ops <ops@cyberia.club>
tasks:
- genimg:
- cd capsul-images/ubuntu
- sudo ./build $version
+ cd capsul-images/ubuntu
+ sudo ./build $version
- deploy: |
cd capsul-images/ubuntu
echo "StrictHostKeyChecking=no" >> ~/.ssh/config