The puppet agent can be disabled from running with:
1 |
puppet disable "Some message here" |
And it can be re-enabled with:
1 |
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:
1 |
$vardir/state/agent_disabled.lock |
For the systems I was checking this was at:
1 |
/opt/puppetlabs/puppet/cache/state/agent_disabled.lock |