The puppet agent can be disabled from running with:
puppet disable "Some message here"
And it can be re-enabled with:
puppet enable
But to check if puppet is currently disabled there is no check command. Instead look for the existence of the agent_disabled.lock file under:
$vardir/state/agent_disabled.lock
For the systems I was checking this was at:
/opt/puppetlabs/puppet/cache/state/agent_disabled.lock
Checking if Puppet is Disabled
Leave a Reply