krisdigitx
krisdigitx

Reputation: 7126

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?

Upvotes: 2

Views: 2611

Answers (1)

Felix Frank
Felix Frank

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

Related Questions