Search code examples
configurationconfigpuppet

How to show a summary of the last puppet agent run?


As Ubuntu administrator I want to know status of each or last puppet agent run. How can I check with cli? Can I write to logs each run in human readable format?


Solution

  • puppet maintain last puppet agent run status in /var/lib/puppet/state/last_run_summary.yaml. you can refer that yaml file content. To know when puppet agent last ran on client server you can check timestamp of that file via using below command (stat) or your preferred any other command.

    stat /var/lib/puppet/state/last_run_summary.yaml