diff options
author | Julien Dessaux | 2022-09-17 19:21:37 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-09-17 19:21:37 +0200 |
commit | beb8ee039e77fe4c2e0a6344965fbce530b54ebb (patch) | |
tree | 027abe115888f606bf7f76c55f2a323e6f1d10b4 /upgrades | |
parent | Added www-deploy job (diff) | |
download | ev-scripts-beb8ee039e77fe4c2e0a6344965fbce530b54ebb.tar.gz ev-scripts-beb8ee039e77fe4c2e0a6344965fbce530b54ebb.tar.bz2 ev-scripts-beb8ee039e77fe4c2e0a6344965fbce530b54ebb.zip |
Added simple system upgrade scripts
Diffstat (limited to '')
-rw-r--r-- | upgrades/apk.sh | 6 | ||||
-rw-r--r-- | upgrades/dalinar.yaml | 11 | ||||
-rw-r--r-- | upgrades/kaladin.yaml | 11 | ||||
-rw-r--r-- | upgrades/lore.yaml | 11 | ||||
-rw-r--r-- | upgrades/myth.yaml | 11 | ||||
-rw-r--r-- | upgrades/pkg.sh | 6 |
6 files changed, 56 insertions, 0 deletions
diff --git a/upgrades/apk.sh b/upgrades/apk.sh new file mode 100644 index 0000000..de68bd4 --- /dev/null +++ b/upgrades/apk.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail + +apk upgrade + +echo OK > /var/spool/adyxax/nagios/upgrade diff --git a/upgrades/dalinar.yaml b/upgrades/dalinar.yaml new file mode 100644 index 0000000..afedf2a --- /dev/null +++ b/upgrades/dalinar.yaml @@ -0,0 +1,11 @@ +name: "dalinar" +steps: + - label: upgrade + script: + path: "pkg.sh" +runner: + identity: "eventline-ssh" + name: "ssh" + parameters: + host: "dalinar.adyxax.org" + user: "root" diff --git a/upgrades/kaladin.yaml b/upgrades/kaladin.yaml new file mode 100644 index 0000000..4971175 --- /dev/null +++ b/upgrades/kaladin.yaml @@ -0,0 +1,11 @@ +name: "kaladin" +steps: + - label: upgrade + script: + path: "pkg.sh" +runner: + identity: "eventline-ssh" + name: "ssh" + parameters: + host: "kaladin.adyxax.org" + user: "root" diff --git a/upgrades/lore.yaml b/upgrades/lore.yaml new file mode 100644 index 0000000..533ac75 --- /dev/null +++ b/upgrades/lore.yaml @@ -0,0 +1,11 @@ +name: "lore" +steps: + - label: upgrade + script: + path: "pkg.sh" +runner: + identity: "eventline-ssh" + name: "ssh" + parameters: + host: "lore.adyxax.org" + user: "root" diff --git a/upgrades/myth.yaml b/upgrades/myth.yaml new file mode 100644 index 0000000..d925844 --- /dev/null +++ b/upgrades/myth.yaml @@ -0,0 +1,11 @@ +name: "myth" +steps: + - label: upgrade + script: + path: "apk.sh" +runner: + identity: "eventline-ssh" + name: "ssh" + parameters: + host: "myth.adyxax.org" + user: "root" diff --git a/upgrades/pkg.sh b/upgrades/pkg.sh new file mode 100644 index 0000000..d54a57b --- /dev/null +++ b/upgrades/pkg.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail + +pkg upgrade -y + +echo OK > /var/spool/adyxax/nagios/upgrade |