I am getting this error on all my hosts, I can''t tell that it''s causing a problem, everything seems to be working fine. Fri May 06 12:52:16 -0700 2011 /Stage[main]// Resources[ssh_authorized_key] (err): Failed to generate additional resources using ''generate'': undefined method `[]'' for nil:NilClass We are using user and group purging for all uids/gids above 0. I also have purging enabled for ssh public keys but have not tested whether it works. This is (probably) the relevant code --> sshkeys.pp (truncated class) class user::sshkeys { @ssh_authorized_key { ''jamie@localhost'': ensure => ''present'', user => ''jamie'', type => ''dsa'', key => ''<snip>'', } } --> init.pp (truncated class) class user::sysadmin inherits user::defs_people { realize( Group[''tech''], User[''jamie''], Group[''jamie''], Ssh_authorized_key[''jamie@localhost''], ) } --> people.pp (truncated class) class user::defs_people { include user::sshkeys @user { ''jamie'': ensure => ''present'', uid => ''785'', gid => ''785'', managehome => ''true'', home => ''/home/jamie'', shell => ''/bin/bash'', comment => ''Jamie is cool'', password => ''<snip>'', } @group { ''jamie'': ensure => ''present'', gid => ''785'', } } -- 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.
Daniel Pittman
2011-May-06 20:12 UTC
Re: [Puppet Users] undefined method `[]'' for nil:NilClass
On Fri, May 6, 2011 at 13:05, Jamie <gojamiegirl@gmail.com> wrote:> I am getting this error on all my hosts, I can''t tell that it''s > causing a problem, everything seems to be working fine. > > Fri May 06 12:52:16 -0700 2011 /Stage[main]// > Resources[ssh_authorized_key] (err): Failed to generate additional > resources using ''generate'': undefined method `[]'' for nil:NilClassHrm. That is an internal bug in puppet: we are treating a nil value as an array, which is really not optimal. If you post a bug report including the output of a puppet run reproducing that with the ''--debug'' and ''--trace'' options that would be swell. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <daniel@puppetlabs.com> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- 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.
Ok, will do thanks On May 6, 1:12 pm, Daniel Pittman <dan...@puppetlabs.com> wrote:> On Fri, May 6, 2011 at 13:05, Jamie <gojamieg...@gmail.com> wrote: > > I am getting this error on all my hosts, I can''t tell that it''s > > causing a problem, everything seems to be working fine. > > > Fri May 06 12:52:16 -0700 2011 /Stage[main]// > > Resources[ssh_authorized_key] (err): Failed to generate additional > > resources using ''generate'': undefined method `[]'' for nil:NilClass > > Hrm. That is an internal bug in puppet: we are treating a nil value > as an array, which is really not optimal. If you post a bug report > including the output of a puppet run reproducing that with the > ''--debug'' and ''--trace'' options that would be swell. > > Daniel > -- > ⎋ Puppet Labs Developer –http://puppetlabs.com > ✉ Daniel Pittman <dan...@puppetlabs.com> > ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 > ♲ Made with 100 percent post-consumer electrons-- 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.