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 <g...@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 <gm...@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 <g...@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 <gm...@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 <g...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.