Ask Your Question

Manually sending facts to master when puppet is locked

asked 2015-07-17 09:43:16 -0600

jlent gravatar image

I wrote and pushed a 'puppet_locked' fact for my hosts to report when puppet is locked, but quickly realized that this fact is pretty much pointless; the Puppet master will never see the change in fact value because, well, puppet is locked!

There are other ways of inferring that a host is not actively checking in, whether it's calculating deltas from last check in, etc.

However, this leads me to my question: does anybody else account for this, and how? via Facter would be optimal for our other reporting frameworks, though we'd need a way to send facts manually to the puppet master without the agent running on its interval. Is there a way to manually push facts to the master, via something like a cron job?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-20 03:32:24 -0600

As you discovered, you can't really account for it inside Puppet, and I would regard it as a "surprising" using of Facter. I would look at using MCollective or similar tool for reporting on hosts where Puppet has left a lock file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-07-17 09:43:16 -0600

Seen: 218 times

Last updated: Jul 20 '15