I am trying to use hiera-eyaml and have followed the README instructions.
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
But when running this simple test module it fails with cannot find the data item rootpwd defined in hieradata/defaults.eyaml.
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 find the defaults.eyaml file.
Here is my hiera.yaml:
:backends:
And my defaults.eyaml file:
rootpwd: >
ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQE ...]
Any hints will be greatly appreciated.
I am running Puppet Enterprise 3.1.0 on Ubuntu 12.04.
Hey Werner.
I just added the 'read' permission to the global setting on the installed gems' directories after the 'gem install' command. I had to do it for hiera-eyaml and the gems that were installed with it.
Kit.