From: buildmaster Date: Fri, 4 Feb 2022 17:23:24 +0000 (+0100) Subject: Adapt package X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=cc5b641bc47deb65948c9369876d2107f66bfd03;p=SaltMinion.git Adapt package --- diff --git a/.gitignore b/.gitignore index 12b8d4b..2c87e3b 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 0000000..d5575d0 --- /dev/null +++ b/100-update-salt.sh.in @@ -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