Can someone tell me what''s wrong here? Or should I reopen #2487, http://projects.reductivelabs.com/issues/2487 ? I have this config: ==class devusers { dev_user { "ben": uid => 510, keytype => "ssh-rsa", keyname => "ben@7.106.cp", key => "blahblah" } dev_user { "yuri": uid => 503, keytype => "ssh-rsa", key => "blahblah" keyname => "yuri@devhost2.dev.cp" } } define dev_user($uid,$keyname,$key,$keytype) { user { $name: ensure => present, uid => $uid, gid => $name, groups => "devs", managehome => true, } group { $name: gid => $uid, ensure => present } # puppet bug :( # ssh_authorized_key { $keyname: # type => $keytype, # key => $key, # user => $uid, # ensure => present, # require => User[$name] # } } == Running this config is fine, users are created. When I uncomment the authorized_keys bit, puppetd execution fails entirely: [root@devhost2 manifests]# puppetd --no-daemonize -od debug: Failed to load library ''selinux'' for feature ''selinux'' . . . debug: //devusers/Dev_user[yuri]/ Ssh_authorized_key[yuri@devhost2.dev.cp]: Changing ensure debug: //devusers/Dev_user[yuri]/ Ssh_authorized_key[yuri@devhost2.dev.cp]: 1 change(s) debug: The required user is not yet present on the system debug: The required user is not yet present on the system notice: //devusers/Dev_user[yuri]/ Ssh_authorized_key[yuri@devhost2.dev.cp]/ensure: created debug: The required user is not yet present on the system err: Got an uncaught exception of type ArgumentError: user 503 doesn''t exist debug: Storing state debug: Stored state in 0.08 seconds notice: Finished catalog run in 2.35 seconds Curiously, the key file is actually created. But I have to leave this disabled and not just live with error messages, as the exception ends further processing by puppetd. Thanks for any help, Ben -- 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.
Zitat von Ben Lavender <blavender@gmail.com>:> Can someone tell me what''s wrong here? Or should I reopen #2487, > http://projects.reductivelabs.com/issues/2487 ? > [...] > . > . > debug: //devusers/Dev_user[yuri]/ > Ssh_authorized_key[yuri@devhost2.dev.cp]: Changing ensure > debug: //devusers/Dev_user[yuri]/ > Ssh_authorized_key[yuri@devhost2.dev.cp]: 1 change(s) > debug: The required user is not yet present on the system > debug: The required user is not yet present on the system > notice: //devusers/Dev_user[yuri]/ > Ssh_authorized_key[yuri@devhost2.dev.cp]/ensure: created > debug: The required user is not yet present on the system > err: Got an uncaught exception of type ArgumentError: user 503 doesn''t > exist > debug: Storing state > debug: Stored state in 0.08 seconds > notice: Finished catalog run in 2.35 seconds > > Curiously, the key file is actually created. But I have to leave this > disabled and not just live with error messages, as the exception ends > further processing by puppetd.which version are you running? cheers pete -- 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.
*slap forehead* This is on 0.25.4, the latest gem as of ~2 weeks ago. Thanks, Ben On Mar 5, 2:18 pm, Peter Meier <peter.me...@immerda.ch> wrote:> Zitat von Ben Lavender <blaven...@gmail.com>: > > > > > Can someone tell me what''s wrong here? Or should I reopen #2487, > >http://projects.reductivelabs.com/issues/2487? > > [...] > > . > > . > > debug: //devusers/Dev_user[yuri]/ > > Ssh_authorized_key[y...@devhost2.dev.cp]: Changing ensure > > debug: //devusers/Dev_user[yuri]/ > > Ssh_authorized_key[y...@devhost2.dev.cp]: 1 change(s) > > debug: The required user is not yet present on the system > > debug: The required user is not yet present on the system > > notice: //devusers/Dev_user[yuri]/ > > Ssh_authorized_key[y...@devhost2.dev.cp]/ensure: created > > debug: The required user is not yet present on the system > > err: Got an uncaught exception of type ArgumentError: user 503 doesn''t > > exist > > debug: Storing state > > debug: Stored state in 0.08 seconds > > notice: Finished catalog run in 2.35 seconds > > > Curiously, the key file is actually created. But I have to leave this > > disabled and not just live with error messages, as the exception ends > > further processing by puppetd. > > which version are you running? > > cheers pete-- 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.