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 => "b...@7.106.cp", key => "blahblah" } dev_user { "yuri": uid => 503, keytype => "ssh-rsa", key => "blahblah" keyname => "y...@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: [r...@devhost2 manifests]# puppetd --no-daemonize -od debug: Failed to load library 'selinux' for feature 'selinux' . . . 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. 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-us...@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.