Ask Your Question

Storing facts in a database

asked 2017-01-28 19:59:34 -0600

wfsaxton gravatar image

Is it a common practice to store node "facts" in a database, particularly if they are values that are set by administrators? I have a customer with existing configuration settings per node already in a database and it would be very handy to figure out a way for puppet to use them.

For my understanding of facts, it seems like facts are sent from the client to the puppetserver. I would much prefer if the puppetserver could set these facts themselves, so the client wouldn't have to.

Is there a way to have "puppetserver-side" facts for hosts? Perhaps the puppetserver could populate the node's facts inside of the ENC script or something? I want this fact populate so that it can be used within hiera lookups.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-29 20:35:41 -0600

DarylW gravatar image

It wouldn't be 'facts', but it would be information that you could use from puppet. You can use alternate 'backends' for hiera, like That allows you to get information from a database backed store through the hiera lookups.

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: 2017-01-28 19:59:34 -0600

Seen: 115 times

Last updated: Jan 29 '17