Re: [Puppet Users] Re: ssh_authorized_key runs every time

Felix Frank
Mon, 07 Mar 2011 12:09:30 -0000

On 02/25/2011 10:00 PM, Stefan Schulte wrote:
> On Thu, Feb 24, 2011 at 01:57:14PM -0800, mark risher wrote:
>> Thanks, but I do have those parameters; I was trying to keep my quote
>> short. Here''s the full monty:
>>
>>     # create an ssh key for this user
>>     ssh_authorized_key { "$username.$ssh_public_key":
>>         ensure      => present,
>>         key         => $ssh_public_key,
>>         type        => $ssh_key_type,
>>         user        => $username,
>>     }

Is there per chance any junk in your $ss_public_key? Puppet will get
confused if there is e.g. the original key name in the "key" parameter
(such as "AAAAB3NzaC1y...rN3YQ== foobar@myhost.domain.org")

HTH,
Felix