Ask Your Question

Dynamically add Files to Hiera

asked 2016-04-17 02:16:51 -0500

ory gravatar image

Hi, We need to manage many keys in Hiera. Since many people should be able to edit the keys and in order to avoid a complete mess I was thinking to work with many different files. The problem is that I don't know how to make Hiera read from new files. I don't want to add each file to the hierarchy explicitly. Optimally I would add something like that /etc/puppetlabs/code/enironments/%{::environment}/hieradata/delegated/* and Hiera will just read from all files that are under the delegated folder. I wasn't able to find how to achieve my goal. What is the correct approach here?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-18 01:04:50 -0500

FranzCC gravatar image

you let them edit files directly on the host ?
This could be good, who is testing for errors etc ?
I created a webapp, only using one file.
I use JSON encoding and the written file will be verified by decoding and encoding again,
as well as md5 checksumming.
Of course file locking on write is used, that only one commit can happen at a time.


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: 2016-04-17 02:16:51 -0500

Seen: 78 times

Last updated: Apr 18 '16