hiera-eyaml: Puppet hiera(): Cannot load backend eyaml: no such file to load

Environment: Amazon Linux AMI Puppet Version: 3.7.1 Puppet Server 0.3.0 (the new one) not puppetmaster Both were installed from the puppetlabs repo.

If I use puppetmaster or something like nginx/unicorn this works fine. But using the new puppetserver released it can’t find the backend.

My hiera.yaml file


---
:backends:
  - eyaml
  - yaml

:hierarchy:
  - '%{::clientcert}'
  - '%{::osfamily}'
  - encrypted
  - common

:yaml:
   :datadir: /etc/puppet/modules/hieradata

:eyaml:
    :datadir: /etc/puppet/modules/hieradata
    :extension: 'yaml'

    # If using the pkcs7 encryptor (default)
    :pkcs7_private_key: /etc/somekey.pkcs7.pem
    :pkcs7_public_key:  /etc/somepubkey.pkcs7.pem

Full error in /var/log/puppetserver/puppetserver.log

Puppet hiera(): Cannot load backend eyaml: no such file to load -- hiera/backend/eyaml/encryptor

Doing a whereis on eyaml shows it here:

eyaml: /usr/local/bin/eyaml

I see eyaml_backend located here:

/usr/local/share/ruby/gems/2.0/gems/hiera-eyaml-2.0.3/lib/hiera/backend/eyaml_backend.rb

Not sure where else to look so I appreciate the help. I’d like to get this running correctly.

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 30 (5 by maintainers)

Most upvoted comments

So I finally got this to work on both the command line and through the server (4.1.2) I believe.

The two commands that need to be ran are:

/opt/puppetlabs/puppet/bin/gem install hiera-eyaml
/opt/puppetlabs/server/bin/puppetserver gem install hiera-eyaml

Ran into this with Puppet Enterprise 3.7 with the hunner/puppet-hiera#46 module and running the following command resolved the issue.

puppetserver gem install hiera-eyaml

hi - i have got the same problem … puppetserver gem install - installs in /opt/puppetlabs/puppetserver whereelse hiera looks up for backend in /opt/puppetlabs/puppet.

After hours and hours trying to understand what was going on with the fscking hiera, you guys made my day with puppetserver gem install - Thanks a bunch!

If you want command-line access or to be able to use the hiera command-line tool with Puppet 4, you’ll need to also run /opt/puppetlabs/bin/gem install hiera-eyaml.