问题
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?
回答1:
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 or your preferred any other command.
#stat/var/lib/puppet/state/last_run_summary.yaml
来源:https://stackoverflow.com/questions/46631338/how-to-show-a-summary-of-the-last-puppet-agent-run