Hi guys,

I try to get puppet to work with the Authorized_keys Recipe but still
got no luck.
http://reductivelabs.com/trac/puppet/wiki/Recipes/Authorized_keys

I've got some syntax errors when I added this to my site.pp

node myhost {
  include accounts
  authorized-keys { "Management of authorized_keys for myhost":
      [ key_owner => "user1", auth_user => "user1", ensure => present;
        key_owner => "user2", auth_user => "user2", ensure => present;
        key_owner => "user3", auth_user => "user3", ensure =>
present; ]
  }
}
I read manual many times but still don't understand the definition
above.

I'm trying to make puppet (key server)copying ssh public key to a new
created client.
Here are changes I made to my clas files

class accounts-master inherits accounts {
    Account ["user1"]
    { keygen => true }
    Account ["user2"]
    { keygen => true }
}
class accounts {
.
.
.
.
  account {
        "user1":
            keygen   => $keygen,
            homeroot => $homeroot,
            group    => $group,
            ingroups => $groups,
            fullname => "User1";
        "user2":
            keygen   => $keygen,
            homeroot => $homeroot,
            group    => $group,
            ingroups => $groups,
            fullname => "User2";
        "user3":
            keygen   => $keygen,
            homeroot => $homeroot,
            ingroups => "wheel users",
            shell    => "/bin/bash",
            fullname => "user3";
     }
}

I'm quite new to puppet so sorry If I ask something wrong and sorry
for my English too.

Thanks in advance,
X

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to