The puppet agent is a service that runs on the servers. Once the service is started, The agent will be triggered on background every 30 min (by default).
The agent have 2 main usages:
By default the agent is triggered every 30 minutes.
This interval value can be changed from the puppet.conf file.
/etc/puppet/puppet.conf%PROGRAMDATA%\PuppetLabs\puppet\etc\puppet.confSet the runinterval to the wanted interval.
runinterval=xxx
The agent can be triggered manually with the command:
puppet agent -t
Sometimes it is helpful to get more output on puppet agent run.
It is very useful for debugging.
Run puppet agent with verbose and debug parameters:
debug - Enable full debugging.verbose - Turn on verbose reporting.puppet agent -t --verbose --debug
Puppet agnet logs messages. You can view this logs here:
Linux - /var/log/puppet/puppet.log
Windows - view the Event Viewer (Control Panel → System and Security → Administrative Tools → Event Viewer)