I had to write up a quick *.pp to push out SSH keys for our nagios
user, while I work on a better solution for managing these. To my
surprise, I found multiples (100 or more?) of the same key in the
authorized_keys file, which is definitely wrong. I'm including the
simple code below -- can someone please advise me on what the problem
is??
The section that handles the virtual user seems to be fine.
Thanks in advance...
class nagios-ssh-keys {
file { "/home/nagios/.ssh":
require => User["nagios"],
ensure => directory,
owner => "nagios",
group => "staff",
mode => "700",
}
ssh_authorized_key { "nagios":
ensure => present,
key => "AAAA[snip]== nagios@host",
user => "nagios",
type => "ssh-dss",
# require => User["nagios"],
tag => "system",
}
} # ssh-keys
--
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.