Checking if Puppet is Disabled

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

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>