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!