Reboot the client after installing the new salt version
#!/bin/bash
-# Package to update the salt-minion on the clients.
+# Script to update the salt-minion on the clients.
MINION=$1
-SALTV=$( salt $MINION grains.get saltversion | tail -n1 )
-
+SALTV=$( salt $MINION grains.get saltversion | tail -n1 | tr -d ' ' )
+echo "$MINION $SALTV"
if [ "${SALTV}" -a "$SALTV" != "VERSION" ]; then
salt $MINION state.apply SaltMinion
salt-key -yd $MINION
install_flags: '/S /master=admin /minion-name={{ name }}'
locale: de_DE
msiexec: False
- reboot: False
+ reboot: True
cache_dir: False