Hi > class users { > > user { "ben" : > ensure => present, > uid => 1010, > gid => "users", > managehome => true, > password => "blahblah" > } > > ssh_authorized_key { "ben-key": > ensure => present, > key => "blahblah", > type => "ssh-dss", > user => "ben", > } > > } > > This doesn't work, not even in the 'run it twice' kind of way: > Nov 11 23:49:04 mgmt puppetd[20300]: Could not create ben-key: user > ben doesn't exist > Nov 11 23:49:04 mgmt puppetd[20300]: Configuration could not be > instantiated: user ben doesn't exist > > Commenting out the key will create the user, and uncommenting it after > user creation will create the key. Am I missing something painfully > obvious?
you have to specify relationship between these 2 resources. This means that the ssh_authorized_key needs a require => User['ben'] 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---