Hello, I have spent the past several days unsuccessfully trying to get hiera-gpg to work. Can anyone help me understand what I am doing wrong? I am using Puppet Enterprise 2.7.2 (as a proof of concept).
Right now, I just have a simple class where I look up a password and display it. I intend to use that password for subsequent operations. class hiera_test { $lookup = hiera("appadminpwd") #Test hiera functionality exec { "hiera_test": command => "curl -s -f -u admin:$lookup http://localhost/configure.html", path => "/usr/bin:/usr/sbin:/bin", } notify { "Password is: $lookup": } } The error I always receive is: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for #<Puppet::Util::Log:0x7f137e3566d0> at /etc/puppetlabs/puppet/modules/mod1/manifests/hiera_test.pp:2 on node ireland The error message indicates to me that the lookup from Hiera is failing. The strange part is that I can run hiera from the command line successfully: /opt/puppet/bin# ./hiera appadminpwd apppassword /usr/local/bin# ./hiera appadminpwd apppassword I have a hiera.yaml in /etc/hiera.yaml and also in /etc/puppetlabs/puppet/hiera.yaml. Thanks for any assistance - I did see a similar post a month ago, but there was no resolution. Thanks, John -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.