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:

   - yaml
   - eyaml 
   - :hierarchy:
      - defaults
      - "%{clientcert}"
      - "%{environment}"
      - global 
      - :yaml: :datadir: /etc/puppetlabs/puppet/modules/hieradata 
      - :eyaml: :datadir: /etc/puppetlabs/puppet/modules/hieradata 
      -            :pkcs7_private_key: 
      /etc/puppetlabs/puppet/secure/keys/private_key.pkcs7.pem 
      -            :pkcs7_public_key: 
      /etc/puppetlabs/puppet/secure/keys/public_key.pkcs7.pem
   
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.

-- 
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/f09752d0-d67c-4512-9b5f-00c55dc9358e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to