Ask Your Question

Accessing Hiera variables

asked 2016-12-05 10:27:31 -0500

jacksonecac gravatar image

I have specific hiera data that I would like to reference in my modules. For example have a variable have a different value from production versus non-production.

How do I made a reference in my module to a specific value in hiera? For example if I have a value

root_pw = some_dev_pass


root_pw = some_prod_pass

If I need to reference this variable in my module how do I do this?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-05 11:22:33 -0500

DarylW gravatar image

updated 2016-12-05 11:28:34 -0500

The documentation can be found at

Have you looked through the Getting Started with Hiera documentation for your version?

This post from the puppet blog in 2015 is still relevant, and is a pretty good article to follow

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


Asked: 2016-12-05 10:27:31 -0500

Seen: 79 times

Last updated: Dec 05 '16