For those who would like to expand their use of Hiera to talk to a Consul 
server/cluster, British Gas Connected Home have made available a gem called 
bgch-hiera-consul on rubygems.

It derives from lynxman's hiera-consul, but works somewhat differently.  

It fulfils the hiera_hash and hiera_array functionality, and does all 
parsing of data in Consul value stores for you.  Thus you can embed 
(currently) json or yaml directly and bgch-hiera-consul will populate your 
hiera variables (and thus puppet class parameters) for all of the sub 
entries.

We use this, currently, for our development clusters, where we want to have 
a quick turnaround in our puppet process.  Instead of editing yaml files, 
we can manually or  automatically push values to our Consul store, and 
puppet will pick them up on the next run.

Source and sample code are at https://github.com/ConnectedHomes/hiera-consul

Any feedback, whether in questions, PRs, or complaints, will be appreciated.

Justin.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/be70fdcf-b29f-413c-bbed-4b41c648cadd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to