Last active
February 14, 2023 08:49
-
-
Save gcommit/e0f5cf359fff734b3a5ee3b23700cee0 to your computer and use it in GitHub Desktop.
Start puppet as soon as the current run is over
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=/var/lib/puppet/state/agent_catalog_run.lock | |
while [ -f $FILE ]; | |
do | |
echo "File $FILE exists." | |
sleep 1 | |
done | |
echo "Starting Puppet now, just for you ..." | |
time puppet agent -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment