lib/puppet/agent/locker.rb in puppet-2.7.19 vs lib/puppet/agent/locker.rb in puppet-2.7.20.rc1
- old
+ new
@@ -3,14 +3,16 @@
# Break out the code related to locking the agent. This module is just
# included into the agent, but having it here makes it easier to test.
module Puppet::Agent::Locker
# Let the daemon run again, freely in the filesystem.
def enable
+ Puppet.notice "Enabling Puppet."
lockfile.unlock(:anonymous => true)
end
# Stop the daemon from making any catalog runs.
def disable
+ Puppet.notice "Disabling Puppet."
lockfile.lock(:anonymous => true)
end
# Yield if we get a lock, else do nothing. Return
# true/false depending on whether we get the lock.