]> repo.cephalix.eu Git - SaltMinion.git/commitdiff
Adapt package
authorbuildmaster <buildmaster@git.cephalix.eu>
Fri, 4 Feb 2022 17:23:24 +0000 (18:23 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Fri, 4 Feb 2022 17:23:24 +0000 (18:23 +0100)
.gitignore
100-update-salt.sh.in [new file with mode: 0644]

index 12b8d4b495f3dc6fa866536cf9c4d104b666fee4..2c87e3b4049a96595b8e96b20342ca068f5b8492 100644 (file)
@@ -1 +1,2 @@
-packages.spec
+crx-update-SaltMinion.spec
+repo-ng/
diff --git a/100-update-salt.sh.in b/100-update-salt.sh.in
new file mode 100644 (file)
index 0000000..d5575d0
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Package to update the salt-minion on the clients.
+
+MINION=$1
+
+SALTV=$( salt $MINION grains.get saltversion | tail -n1 )
+
+if [ "${SALTV}" -a "$SALTV" != "VERSION" ]; then
+       salt $MINION state.apply SaltMinion
+       salt-key -yd $MINION
+       sleep 10
+fi