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

Hugo Deprez
Wed, 20 Jul 2011 12:29:53 -0000

Hello,

I have the same issue :

    ssh_authorized_key
    {
        "user-rsa-key":
           ensure => ''present'',
           key => ''*******************== user@servername'',
           type => ''rsa'',
           user => ''user'',
           require => File["/home/user/.ssh"],
    }


On my server it adds the same key every time puppet run :

notice: /Stage[main]/Check_drbd/Ssh_authorized_key[user-rsa-key]/ensure:
created
info: FileBucket adding /home/user/.ssh/authorized_keys as
{md5}c2f4b42*******

I don''t see the issue ?

Thanks for the help !

Hugo

On 7 March 2011 13:09, Felix Frank <felix.frank@alumni.tu-berlin.de>
wrote:

> 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
>
> --
> 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.
>
>