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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.