Thanks I manage to do it...
On Tue, Nov 10, 2009 at 2:26 PM, ew <erhard.w...@gmail.com> wrote: > > hi > > puppet provides the following function to maintain authorized_key > files: > http://reductivelabs.com/trac/puppet/wiki/TypeReference#ssh-authorized-key > > we mange our keys with the following statement: > > class ssh::authkey { > ssh_authorized_key{$my_user: > ensure => present, > target => '/root/.ssh/authorized_keys2', > type => 'ssh-dss', > user => 'root', > key => $my_authkey, > } > } > > hth > erhard > > On Oct 30, 12:40 pm, haris <mfha...@gmail.com> wrote: > > just to correct my puppet statement; > > > > I am trying to do this but it gives error; > > > > file { "${home}/${username}/.ssh/authorized_keys": > > { > > ensure => present, > > ... > > source => "puppet:///users/keys/id_rsa.pub.${username}",} > > > > but it Gives Error: > > > > Failed to retrieve current state of resource: Fileserver module > > 'users' not mounted Could not describe /users/keys/id_rsa.pub.foo > > > > On Oct 30, 12:16 pm, haris <mfha...@gmail.com> wrote: > > > > > > > > > hi all, > > > I need to generate ssh authorize keys for a list of users hosted on > > > different servers.the users are active and each one has its public key > > > (id_rsa.pub) hosted in 1 server. now what i need to do is to generate > > > the authorize keys from each of their public key. the key is easily > > > generating if public key hosted on the Node but my problem is that all > > > public keys are hosted in 1 machine with a name like "id_rsa.pub.foo", > > > where 'foo' is the username. can anybody have any idea how to create > > > the authorized_key in this scenario. > > > > > Is it possible to generate; > > > file: "authorized_keys" from > > > source: "server/users/keys/id_rsa.pub.foo" > > > > > regards > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---