Hi! I think I''ve gone through the hiera install process correctly, but still getting: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?'' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node # gem list *** LOCAL GEMS *** activerecord (2.3.14) activesupport (2.3.14) ar-extensions (0.9.5) builder (2.1.2) dalli (1.1.2) hiera (0.2.0) hiera-puppet (0.2.0) multi_json (1.0.3) puppet-module (0.3.4) rack (1.1.3) rake (0.8.7) rubygems-update (1.8.12) sinatra (1.2.6) stomp (1.1.9) tilt (1.3.3) and I downloaded the tar file and uncompressed it in the right place according to http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ I can using the command line: # hiera ntpserver 10.73.206.12 but not as a puppet module (see error above) I''ve found that if i remove the yaml backend from my hiera.yaml, the puppet run is successful, i.e. it doesn''t complain, however it doesn''t read from my YAML hiera files! Any advice would be greatly appreciated! Thanks, Guy P.S. - my hiera.yaml looks like: :backends: - yaml - puppet :logger: console :hierarchy: - 10-host/%{fqdn} - 20-env/%{env} - 30-genv/%{mserv_genv} - 40-tier-dc/%{mserv_tier}-%{mserv_dc} - 50-dc/%{mserv_dc} - 60-app/%{mserv_app} - 70-country/%{mserv_loc} - common :yaml: :datadir: /etc/puppetlabs/puppet/hieradata :puppet: :datasource: data -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Couple things to check: * hiera command line uses /etc/hiera.yaml for its config, but the hiera-puppet plugin uses /etc/puppet/hiera.yaml * I don''t really know much about yaml, but I have found that I often have to write lists as :foo: - bar - baz Notice the newline before the first item. Hope that helps, or maybe someone else will have something better, Chad On Thu, Mar 22, 2012 at 4:13 PM, Guy Matz <gmatz@matz.org> wrote:> Hi! I think I''ve gone through the hiera install process correctly, but > still getting: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `empty?'' for false:FalseClass at > /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node > > # gem list > > *** LOCAL GEMS *** > > activerecord (2.3.14) > activesupport (2.3.14) > ar-extensions (0.9.5) > builder (2.1.2) > dalli (1.1.2) > hiera (0.2.0) > hiera-puppet (0.2.0) > multi_json (1.0.3) > puppet-module (0.3.4) > rack (1.1.3) > rake (0.8.7) > rubygems-update (1.8.12) > sinatra (1.2.6) > stomp (1.1.9) > tilt (1.3.3) > > and I downloaded the tar file and uncompressed it in the right place > according to > http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ > > I can using the command line: > # hiera ntpserver > 10.73.206.12 > > but not as a puppet module (see error above) > > I''ve found that if i remove the yaml backend from my hiera.yaml, the puppet > run is successful, i.e. it doesn''t complain, however it doesn''t read from my > YAML hiera files! > > Any advice would be greatly appreciated! > > Thanks, > Guy > > P.S. - my hiera.yaml looks like: > :backends: - yaml > - puppet > > :logger: console > > :hierarchy: - 10-host/%{fqdn} > - 20-env/%{env} > - 30-genv/%{mserv_genv} > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} > - 50-dc/%{mserv_dc} > - 60-app/%{mserv_app} > - 70-country/%{mserv_loc} > - common > :yaml: > :datadir: /etc/puppetlabs/puppet/hieradata > > :puppet: > :datasource: data > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- Chad M. Huneycutt -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote:> Hi! I think I''ve gone through the hiera install process correctly, but still getting: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?'' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node > > # gem list > > *** LOCAL GEMS *** > > activerecord (2.3.14) > activesupport (2.3.14) > ar-extensions (0.9.5) > builder (2.1.2) > dalli (1.1.2) > hiera (0.2.0) > hiera-puppet (0.2.0) > multi_json (1.0.3) > puppet-module (0.3.4) > rack (1.1.3) > rake (0.8.7) > rubygems-update (1.8.12) > sinatra (1.2.6) > stomp (1.1.9) > tilt (1.3.3) > > and I downloaded the tar file and uncompressed it in the right place according to http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ > > I can using the command line: > # hiera ntpserver > 10.73.206.12 > > but not as a puppet module (see error above) > > I''ve found that if i remove the yaml backend from my hiera.yaml, the puppet run is successful, i.e. it doesn''t complain, however it doesn''t read from my YAML hiera files! > > Any advice would be greatly appreciated! > > Thanks, > GuyGuy, What does the hiera function call look like within your Puppet manifest? It sounds like you may be trying to set a default to an empty string or something like this? I''ve seen this error before, but it might help to see a bit of your manifest and what a YAML file looks like that contains your value? Thanks!> > P.S. - my hiera.yaml looks like: > :backends: - yaml > - puppet > > :logger: console > > :hierarchy: - 10-host/%{fqdn} > - 20-env/%{env} > - 30-genv/%{mserv_genv} > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} > - 50-dc/%{mserv_dc} > - 60-app/%{mserv_app} > - 70-country/%{mserv_loc} > - common > :yaml: > :datadir: /etc/puppetlabs/puppet/hieradata > > :puppet: > :datasource: data > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks, guys! Here''s the relevant snippet from my manifest: @common::mkuser { ''root'': uid => 0, comment => ''root'', home => ''/root'', password => hiera(''rootPassword''), managehome => false; And here''s what it looks like when I run from command-line: # hiera -d rootPassword DEBUG: Fri Mar 23 09:12:27 -0400 2012: Hiera YAML backend starting DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking up rootPassword in YAML backend DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 10-host/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/10-host/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 20-env/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/20-env/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 30-genv/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/30-genv/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 40-tier-dc/- DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/40-tier-dc/-.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 50-dc/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/50-dc/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 60-app/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/60-app/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 70-country/ DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile /etc/puppetlabs/puppet/hieradata/70-country/.yaml, skipping DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source common $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ And my yaml file: # cat /etc/puppetlabs/puppet/hieradata/common.yaml --- rootPassword: $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ ntpserver: 10.73.206.12 Again, the error is: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?'' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 That''s the line where my hiera call is in my manifest . . . Thanks again!! On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza <gary@puppetlabs.com> wrote:> > On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: > > Hi! I think I''ve gone through the hiera install process correctly, but > still getting: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `empty?'' for false:FalseClass at > /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node > > # gem list > > *** LOCAL GEMS *** > > activerecord (2.3.14) > activesupport (2.3.14) > ar-extensions (0.9.5) > builder (2.1.2) > dalli (1.1.2) > hiera (0.2.0) > hiera-puppet (0.2.0) > multi_json (1.0.3) > puppet-module (0.3.4) > rack (1.1.3) > rake (0.8.7) > rubygems-update (1.8.12) > sinatra (1.2.6) > stomp (1.1.9) > tilt (1.3.3) > > and I downloaded the tar file and uncompressed it in the right place > according to > http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ > > I can using the command line: > # hiera ntpserver > 10.73.206.12 > > but not as a puppet module (see error above) > > I''ve found that if i remove the yaml backend from my hiera.yaml, the > puppet run is successful, i.e. it doesn''t complain, however it doesn''t read > from my YAML hiera files! > > Any advice would be greatly appreciated! > > Thanks, > Guy > > > Guy, > > What does the hiera function call look like within your Puppet manifest? > It sounds like you may be trying to set a default to an empty string or > something like this? I''ve seen this error before, but it might help to see > a bit of your manifest and what a YAML file looks like that contains your > value? > > Thanks! > > > > P.S. - my hiera.yaml looks like: > :backends: - yaml > - puppet > > :logger: console > > :hierarchy: - 10-host/%{fqdn} > - 20-env/%{env} > - 30-genv/%{mserv_genv} > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} > - 50-dc/%{mserv_dc} > - 60-app/%{mserv_app} > - 70-country/%{mserv_loc} > - common > :yaml: > :datadir: /etc/puppetlabs/puppet/hieradata > > :puppet: > :datasource: data > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Can you single quote the value in your YAML file and then try again? Does that work? On Friday, March 23, 2012, Guy Matz <gmatz@matz.org> wrote:> Thanks, guys! > > Here''s the relevant snippet from my manifest: > @common::mkuser { > ''root'': > uid => 0, > comment => ''root'', > home => ''/root'', > password => hiera(''rootPassword''), > managehome => false; > > And here''s what it looks like when I run from command-line: > # hiera -d rootPassword > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Hiera YAML backend starting > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking up rootPassword in YAMLbackend> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 10-host/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/10-host/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 20-env/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/20-env/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 30-genv/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/30-genv/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source40-tier-dc/-> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/40-tier-dc/-.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 50-dc/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/50-dc/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 60-app/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/60-app/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 70-country/ > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile/etc/puppetlabs/puppet/hieradata/70-country/.yaml, skipping> DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source common > $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ > > And my yaml file: > # cat /etc/puppetlabs/puppet/hieradata/common.yaml > --- > rootPassword: $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ > ntpserver: 10.73.206.12 > > Again, the error is: > err: Could not retrieve catalog from remote server: Error 400 on SERVER:undefined method `empty?'' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27> > That''s the line where my hiera call is in my manifest . . . > > Thanks again!! > > On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza <gary@puppetlabs.com> wrote: > > On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: > > Hi! I think I''ve gone through the hiera install process correctly, butstill getting:> err: Could not retrieve catalog from remote server: Error 400 on SERVER:undefined method `empty?'' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node> > # gem list > > *** LOCAL GEMS *** > > activerecord (2.3.14) > activesupport (2.3.14) > ar-extensions (0.9.5) > builder (2.1.2) > dalli (1.1.2) > hiera (0.2.0) > hiera-puppet (0.2.0) > multi_json (1.0.3) > puppet-module (0.3.4) > rack (1.1.3) > rake (0.8.7) > rubygems-update (1.8.12) > sinatra (1.2.6) > stomp (1.1.9) > tilt (1.3.3) > > and I downloaded the tar file and uncompressed it in the right placeaccording to http://puppetlabs.com/blog/first-look-installing-and-using-hiera/> > I can using the command line: > # hiera ntpserver > 10.73.206.12 > > but not as a puppet module (see error above) > > I''ve found that if i remove the yaml backend from my hiera.yaml, thepuppet run is successful, i.e. it doesn''t complain, however it doesn''t read from my YAML hiera files!> > Any advice would be greatly appreciated! > > Thanks, > Guy > > Guy, > What does the hiera function call look like within your Puppet manifest?It sounds like you may be trying to set a default to an empty string or something like this? I''ve seen this error before, but it might help to see a bit of your manifest and what a YAML file looks like that contains your value?> Thanks! > > > P.S. - my hiera.yaml looks like: > :backends: - yaml > - puppet > > :logger: console > > :hierarchy: - 10-host/%{fqdn} > - 20-env/%{env} > - 30-genv/%{mserv_genv} > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} > - 50-dc/%{mserv_dc} > - 60-app/%{mserv_app} > - 70-country/%{mserv_loc} > - common > :yaml: > :datadir: /etc/puppetlabs/puppet/hieradata > > :puppet: > :datasource: data > > -- > You received this message because you are subscribed to the Google Groups"Puppet Users" group.> To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.> > -- > You received this message because you are subscribed to the Google Groups"Puppet Users" group.> To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.> > -- > You received this message because you are subscribed to the Google Groups"Puppet Users" group.> To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, s-- Gary Larizza Professional Services Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
No, that didn''t do it . . . :-( What I have works on my test server, but not my prod server . . . Thanks again. On Fri, Mar 23, 2012 at 9:57 AM, Gary Larizza <gary@puppetlabs.com> wrote:> Can you single quote the value in your YAML file and then try again? Does > that work? > > > > On Friday, March 23, 2012, Guy Matz <gmatz@matz.org> wrote: > > Thanks, guys! > > > > Here''s the relevant snippet from my manifest: > > @common::mkuser { > > ''root'': > > uid => 0, > > comment => ''root'', > > home => ''/root'', > > password => hiera(''rootPassword''), > > managehome => false; > > > > And here''s what it looks like when I run from command-line: > > # hiera -d rootPassword > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Hiera YAML backend starting > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking up rootPassword in YAML > backend > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 10-host/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/10-host/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 20-env/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/20-env/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 30-genv/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/30-genv/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source > 40-tier-dc/- > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/40-tier-dc/-.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 50-dc/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/50-dc/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 60-app/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/60-app/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source > 70-country/ > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile > /etc/puppetlabs/puppet/hieradata/70-country/.yaml, skipping > > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source common > > $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ > > > > And my yaml file: > > # cat /etc/puppetlabs/puppet/hieradata/common.yaml > > --- > > rootPassword: $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ > > ntpserver: 10.73.206.12 > > > > Again, the error is: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `empty?'' for false:FalseClass at > /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 > > > > That''s the line where my hiera call is in my manifest . . . > > > > Thanks again!! > > > > On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza <gary@puppetlabs.com> > wrote: > > > > On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: > > > > Hi! I think I''ve gone through the hiera install process correctly, but > still getting: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `empty?'' for false:FalseClass at > /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node > > > > # gem list > > > > *** LOCAL GEMS *** > > > > activerecord (2.3.14) > > activesupport (2.3.14) > > ar-extensions (0.9.5) > > builder (2.1.2) > > dalli (1.1.2) > > hiera (0.2.0) > > hiera-puppet (0.2.0) > > multi_json (1.0.3) > > puppet-module (0.3.4) > > rack (1.1.3) > > rake (0.8.7) > > rubygems-update (1.8.12) > > sinatra (1.2.6) > > stomp (1.1.9) > > tilt (1.3.3) > > > > and I downloaded the tar file and uncompressed it in the right place > according to > http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ > > > > I can using the command line: > > # hiera ntpserver > > 10.73.206.12 > > > > but not as a puppet module (see error above) > > > > I''ve found that if i remove the yaml backend from my hiera.yaml, the > puppet run is successful, i.e. it doesn''t complain, however it doesn''t read > from my YAML hiera files! > > > > Any advice would be greatly appreciated! > > > > Thanks, > > Guy > > > > Guy, > > What does the hiera function call look like within your Puppet manifest? > It sounds like you may be trying to set a default to an empty string or > something like this? I''ve seen this error before, but it might help to see > a bit of your manifest and what a YAML file looks like that contains your > value? > > Thanks! > > > > > > P.S. - my hiera.yaml looks like: > > :backends: - yaml > > - puppet > > > > :logger: console > > > > :hierarchy: - 10-host/%{fqdn} > > - 20-env/%{env} > > - 30-genv/%{mserv_genv} > > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} > > - 50-dc/%{mserv_dc} > > - 60-app/%{mserv_app} > > - 70-country/%{mserv_loc} > > - common > > :yaml: > > :datadir: /etc/puppetlabs/puppet/hieradata > > > > :puppet: > > :datasource: data > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, s > > -- > > Gary Larizza > Professional Services Engineer > Puppet Labs > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Can you print out what the contents of the common::mkuser defined resource type is? On Fri, Mar 23, 2012 at 7:40 AM, Guy Matz <gmatz@matz.org> wrote:> No, that didn''t do it . . . :-( What I have works on my test server, > but not my prod server . . . Thanks again. > > > On Fri, Mar 23, 2012 at 9:57 AM, Gary Larizza <gary@puppetlabs.com> wrote: > >> Can you single quote the value in your YAML file and then try again? Does >> that work? >> >> >> >> On Friday, March 23, 2012, Guy Matz <gmatz@matz.org> wrote: >> > Thanks, guys! >> > >> > Here''s the relevant snippet from my manifest: >> > @common::mkuser { >> > ''root'': >> > uid => 0, >> > comment => ''root'', >> > home => ''/root'', >> > password => hiera(''rootPassword''), >> > managehome => false; >> > >> > And here''s what it looks like when I run from command-line: >> > # hiera -d rootPassword >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Hiera YAML backend starting >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking up rootPassword in YAML >> backend >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 10-host/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/10-host/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 20-env/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/20-env/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 30-genv/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/30-genv/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >> 40-tier-dc/- >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/40-tier-dc/-.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 50-dc/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/50-dc/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 60-app/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/60-app/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >> 70-country/ >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >> /etc/puppetlabs/puppet/hieradata/70-country/.yaml, skipping >> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source common >> > $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ >> > >> > And my yaml file: >> > # cat /etc/puppetlabs/puppet/hieradata/common.yaml >> > --- >> > rootPassword: $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ >> > ntpserver: 10.73.206.12 >> > >> > Again, the error is: >> > err: Could not retrieve catalog from remote server: Error 400 on >> SERVER: undefined method `empty?'' for false:FalseClass at >> /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 >> > >> > That''s the line where my hiera call is in my manifest . . . >> > >> > Thanks again!! >> > >> > On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza <gary@puppetlabs.com> >> wrote: >> > >> > On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: >> > >> > Hi! I think I''ve gone through the hiera install process correctly, but >> still getting: >> > err: Could not retrieve catalog from remote server: Error 400 on >> SERVER: undefined method `empty?'' for false:FalseClass at >> /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node >> > >> > # gem list >> > >> > *** LOCAL GEMS *** >> > >> > activerecord (2.3.14) >> > activesupport (2.3.14) >> > ar-extensions (0.9.5) >> > builder (2.1.2) >> > dalli (1.1.2) >> > hiera (0.2.0) >> > hiera-puppet (0.2.0) >> > multi_json (1.0.3) >> > puppet-module (0.3.4) >> > rack (1.1.3) >> > rake (0.8.7) >> > rubygems-update (1.8.12) >> > sinatra (1.2.6) >> > stomp (1.1.9) >> > tilt (1.3.3) >> > >> > and I downloaded the tar file and uncompressed it in the right place >> according to >> http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ >> > >> > I can using the command line: >> > # hiera ntpserver >> > 10.73.206.12 >> > >> > but not as a puppet module (see error above) >> > >> > I''ve found that if i remove the yaml backend from my hiera.yaml, the >> puppet run is successful, i.e. it doesn''t complain, however it doesn''t read >> from my YAML hiera files! >> > >> > Any advice would be greatly appreciated! >> > >> > Thanks, >> > Guy >> > >> > Guy, >> > What does the hiera function call look like within your Puppet >> manifest? It sounds like you may be trying to set a default to an empty >> string or something like this? I''ve seen this error before, but it might >> help to see a bit of your manifest and what a YAML file looks like that >> contains your value? >> > Thanks! >> > >> > >> > P.S. - my hiera.yaml looks like: >> > :backends: - yaml >> > - puppet >> > >> > :logger: console >> > >> > :hierarchy: - 10-host/%{fqdn} >> > - 20-env/%{env} >> > - 30-genv/%{mserv_genv} >> > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} >> > - 50-dc/%{mserv_dc} >> > - 60-app/%{mserv_app} >> > - 70-country/%{mserv_loc} >> > - common >> > :yaml: >> > :datadir: /etc/puppetlabs/puppet/hieradata >> > >> > :puppet: >> > :datasource: data >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Puppet Users" group. >> > To post to this group, send email to puppet-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Puppet Users" group. >> > To post to this group, send email to puppet-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Puppet Users" group. >> > To post to this group, send email to puppet-users@googlegroups.com. >> > To unsubscribe from this group, s >> >> -- >> >> Gary Larizza >> Professional Services Engineer >> Puppet Labs >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Gary Larizza Professional Services Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Gary, thanks for the help, but my puppet master is a frankenstein of (long explanation) and I think I need to simply reinstall everything . . . thanks for the help! Regards On Fri, Mar 23, 2012 at 1:00 PM, Gary Larizza <gary@puppetlabs.com> wrote:> Can you print out what the contents of the common::mkuser defined resource > type is? > > > > On Fri, Mar 23, 2012 at 7:40 AM, Guy Matz <gmatz@matz.org> wrote: > >> No, that didn''t do it . . . :-( What I have works on my test server, >> but not my prod server . . . Thanks again. >> >> >> On Fri, Mar 23, 2012 at 9:57 AM, Gary Larizza <gary@puppetlabs.com>wrote: >> >>> Can you single quote the value in your YAML file and then try again? >>> Does that work? >>> >>> >>> >>> On Friday, March 23, 2012, Guy Matz <gmatz@matz.org> wrote: >>> > Thanks, guys! >>> > >>> > Here''s the relevant snippet from my manifest: >>> > @common::mkuser { >>> > ''root'': >>> > uid => 0, >>> > comment => ''root'', >>> > home => ''/root'', >>> > password => hiera(''rootPassword''), >>> > managehome => false; >>> > >>> > And here''s what it looks like when I run from command-line: >>> > # hiera -d rootPassword >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Hiera YAML backend starting >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking up rootPassword in >>> YAML backend >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >>> 10-host/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/10-host/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 20-env/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/20-env/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >>> 30-genv/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/30-genv/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >>> 40-tier-dc/- >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/40-tier-dc/-.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 50-dc/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/50-dc/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source 60-app/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/60-app/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source >>> 70-country/ >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Cannot find datafile >>> /etc/puppetlabs/puppet/hieradata/70-country/.yaml, skipping >>> > DEBUG: Fri Mar 23 09:12:27 -0400 2012: Looking for data source common >>> > $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ >>> > >>> > And my yaml file: >>> > # cat /etc/puppetlabs/puppet/hieradata/common.yaml >>> > --- >>> > rootPassword: $1$0DvOGiBl$hDKhH80CetcqW/u6nObQA/ >>> > ntpserver: 10.73.206.12 >>> > >>> > Again, the error is: >>> > err: Could not retrieve catalog from remote server: Error 400 on >>> SERVER: undefined method `empty?'' for false:FalseClass at >>> /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 >>> > >>> > That''s the line where my hiera call is in my manifest . . . >>> > >>> > Thanks again!! >>> > >>> > On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza <gary@puppetlabs.com> >>> wrote: >>> > >>> > On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: >>> > >>> > Hi! I think I''ve gone through the hiera install process correctly, >>> but still getting: >>> > err: Could not retrieve catalog from remote server: Error 400 on >>> SERVER: undefined method `empty?'' for false:FalseClass at >>> /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node >>> > >>> > # gem list >>> > >>> > *** LOCAL GEMS *** >>> > >>> > activerecord (2.3.14) >>> > activesupport (2.3.14) >>> > ar-extensions (0.9.5) >>> > builder (2.1.2) >>> > dalli (1.1.2) >>> > hiera (0.2.0) >>> > hiera-puppet (0.2.0) >>> > multi_json (1.0.3) >>> > puppet-module (0.3.4) >>> > rack (1.1.3) >>> > rake (0.8.7) >>> > rubygems-update (1.8.12) >>> > sinatra (1.2.6) >>> > stomp (1.1.9) >>> > tilt (1.3.3) >>> > >>> > and I downloaded the tar file and uncompressed it in the right place >>> according to >>> http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ >>> > >>> > I can using the command line: >>> > # hiera ntpserver >>> > 10.73.206.12 >>> > >>> > but not as a puppet module (see error above) >>> > >>> > I''ve found that if i remove the yaml backend from my hiera.yaml, the >>> puppet run is successful, i.e. it doesn''t complain, however it doesn''t read >>> from my YAML hiera files! >>> > >>> > Any advice would be greatly appreciated! >>> > >>> > Thanks, >>> > Guy >>> > >>> > Guy, >>> > What does the hiera function call look like within your Puppet >>> manifest? It sounds like you may be trying to set a default to an empty >>> string or something like this? I''ve seen this error before, but it might >>> help to see a bit of your manifest and what a YAML file looks like that >>> contains your value? >>> > Thanks! >>> > >>> > >>> > P.S. - my hiera.yaml looks like: >>> > :backends: - yaml >>> > - puppet >>> > >>> > :logger: console >>> > >>> > :hierarchy: - 10-host/%{fqdn} >>> > - 20-env/%{env} >>> > - 30-genv/%{mserv_genv} >>> > - 40-tier-dc/%{mserv_tier}-%{mserv_dc} >>> > - 50-dc/%{mserv_dc} >>> > - 60-app/%{mserv_app} >>> > - 70-country/%{mserv_loc} >>> > - common >>> > :yaml: >>> > :datadir: /etc/puppetlabs/puppet/hieradata >>> > >>> > :puppet: >>> > :datasource: data >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> > To post to this group, send email to puppet-users@googlegroups.com. >>> > To unsubscribe from this group, send email to >>> puppet-users+unsubscribe@googlegroups.com. >>> > For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> > To post to this group, send email to puppet-users@googlegroups.com. >>> > To unsubscribe from this group, send email to >>> puppet-users+unsubscribe@googlegroups.com. >>> > For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> > To post to this group, send email to puppet-users@googlegroups.com. >>> > To unsubscribe from this group, s >>> >>> -- >>> >>> Gary Larizza >>> Professional Services Engineer >>> Puppet Labs >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > > > > -- > > Gary Larizza > Professional Services Engineer > Puppet Labs > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.