Problem using hiera-eyaml

asked 2013-12-05 10:30:36 -0500

wernerbahlke gravatar image

updated 2013-12-05 13:14:07 -0500

Ancillas gravatar image


I am trying to use hiera-eyaml and have followed the README on

eyaml seems to work, I can encrypt and decrypt files and passwords.

I can also use hiera -c to get at an encrypted value like so:

hiera -c /etc/puppetlabs/puppet/hiera.yaml rootpwd <correcty decrypted="" password=""></correcty>

But when running this simple test module it fails with cannot find the data item rootpwd:

class test {
  $test = hiera('test')
  $rootpwd = hiera('rootpwd')
  notify { "Test: ${test}": }

If I just have the test variable defined in defaults.yaml it works fine. So it cannot ... (more)

edit retag flag offensive close merge delete


In what file is 'rootpwd'?

Ancillas gravatar imageAncillas ( 2013-12-05 13:15:00 -0500 )edit

Hi, I t is defined in modules/hieradata/defaults.eyaml. Werner

wernerbahlke gravatar imagewernerbahlke ( 2013-12-05 14:03:58 -0500 )edit

Just some notes (could not refer all to your case): 1. I take for granted that you have an "include test" somewhere 2. if you use puppet apply from a ...(more)

example42 gravatar imageexample42 ( 2013-12-09 05:08:10 -0500 )edit