Hi,

I'm trying to create an authorized key and a user in one go and I'm
not getting anywhere:

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?

Puppet 24.8 on SUSE 11.  I've pared the configuration down to only
this; nothing else is going on.

Thanks,
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to