hi Admin, How are you? I have a easy ssh_authorized_key like below ssh_authorized_key { "hiu@$fqdn": name => "hiu@$fqdn", ensure => present, type => ssh-rsa, key => $keys, user => hiu, } I manage to inject my public key onto the puppet clients, but the problem is whenever the puppet agent refresh itself with -runinterval=XX, then, the public key re-created again. as the result, I have a lot duplicated public keys result like below in my authorized_keys. How can i avoid the duplicated keys? ssh-rsa XXXXXXX ssh-rsa XXXXXXX ssh-rsa XXXXXXX please advise. thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cKNAQRj2WCMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
wen1023 wu
2012-Sep-23 03:35 UTC
Re: [Puppet Users] duplicated public keys in authorized keys
hi please delete the common information from the key value ,may be you used ssh-keygen -t rsa -C "XXX". 2012/9/21 Hiu <yenonn@gmail.com>> hi Admin, > > How are you? > > I have a easy ssh_authorized_key like below > > ssh_authorized_key { "hiu@$fqdn": > name => "hiu@$fqdn", > ensure => present, > type => ssh-rsa, > key => $keys, > user => hiu, > } > > I manage to inject my public key onto the puppet clients, but the problem > is whenever the puppet agent refresh itself with -runinterval=XX, then, the > public key re-created again. as the result, I have a lot duplicated public > keys result like below in my authorized_keys. How can i avoid the > duplicated keys? > > ssh-rsa XXXXXXX > ssh-rsa XXXXXXX > ssh-rsa XXXXXXX > > please advise. thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/cKNAQRj2WCMJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.