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

半世苍凉 提交于 2020-05-13 06:05:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!