Skip to content

Instantly share code, notes, and snippets.

@gcommit
Last active February 14, 2023 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcommit/e0f5cf359fff734b3a5ee3b23700cee0 to your computer and use it in GitHub Desktop.
Save gcommit/e0f5cf359fff734b3a5ee3b23700cee0 to your computer and use it in GitHub Desktop.
Start puppet as soon as the current run is over
#!/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