[Puppet Users] Re: hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-04 Thread Luke Bigum
On Tuesday, September 3, 2013 10:57:39 PM UTC+1, Worker Bee wrote:

 Has anyone been able to get this working?


I use those very same versions and it works so don't despair, it took me 
three separate attempts to get it working over the course of a few months - 
my tripfall was GPG keys though ;-)


 # Class: testdecry
 #

 # [Remember: No empty lines between comments and class definition]
 class testdecry {
 $env = 'live'
 $pass = hiera(rootpwd)
 notify{The value is: ${pass}:}
 }

 
 Running via puppet fails
 [root@me]# puppet agent --test
 Info: Retrieving plugin
 Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
 can't convert nil into String at 
 /etc/puppet/modules/testdecry/manifests/init.pp:17 on node me.net
 Warning: Not using cache on failed catalog
 Error: Could not retrieve catalog; skipping run


That doesn't look like a Hiera specific error, unless somehow you are 
trying to query the key 'nil', it looks more like a generic Puppet parser 
error... Can you paste your full testdecry manifest, your example above 
doesn't have 17 lines so hard to tell what the problem might be.

This might also help: 

puppet master --compile me.net --debug

Save the output of this command and find your error (there'll be a lot of 
debug information as it will debug every Hiera call).

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-04 Thread Worker Bee
Ahh, thanks!  I will take a look at the gpg setup again.

I really appreciarte your help!   Maddening!  :)





On Wed, Sep 4, 2013 at 6:02 AM, Luke Bigum luke.bi...@lmax.com wrote:

  On Tuesday, September 3, 2013 10:57:39 PM UTC+1, Worker Bee wrote:

  Has anyone been able to get this working?


 I use those very same versions and it works so don't despair, it took me
 three separate attempts to get it working over the course of a few months -
 my tripfall was GPG keys though ;-)


 # Class: testdecry
 #

 # [Remember: No empty lines between comments and class definition]
 class testdecry {
 $env = 'live'
 $pass = hiera(rootpwd)
 notify{The value is: ${pass}:}
 }

 __**__
  Running via puppet fails
 [root@me]# puppet agent --test
 Info: Retrieving plugin
 Error: Could not retrieve catalog from remote server: Error 400 on
 SERVER: can't convert nil into String at 
 /etc/puppet/modules/testdecry/**manifests/init.pp:17
 on node me.net
 Warning: Not using cache on failed catalog
 Error: Could not retrieve catalog; skipping run


 That doesn't look like a Hiera specific error, unless somehow you are
 trying to query the key 'nil', it looks more like a generic Puppet parser
 error... Can you paste your full testdecry manifest, your example above
 doesn't have 17 lines so hard to tell what the problem might be.

 This might also help:

 puppet master --compile me.net --debug

 Save the output of this command and find your error (there'll be a lot of
 debug information as it will debug every Hiera call).

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.