简体   繁体   中英

puppet facter last run status

Is it possible for facter to show the last status of puppet runs?

typically puppet stores the result in YAML format in

/var/lib/puppet/state/last_run_report.yaml

any way to get these values as a facter?

Yes, you would need to write a custom fact that just reads the contents of the file and returns it as a (long!) string.

Using large fact values like that may be a Bad Idea, your mileage may vary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM