Reputation: 7126
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?
Upvotes: 2
Views: 2611
Reputation: 8223
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.
Upvotes: 1