Puppet 0.24.8... I am trying to use ssh_authorized_key to create
passwordless logins for a couple of accounts.  The important thing to
note is I'm trying to get the source ("r...@somehost" below) as part of
the key, and the same key needs to be added to two different accounts on
the system.

It appears that the resource name is the only place I can set the
originating source (whatever the correct term is) for the key.

ssh_authorized_key { "r...@somehost":
           ensure  => present,
            type    => ssh-rsa,
            target => '/home/xx/.ssh/authorized_keys',
            key     => 'xxxx removed for brevity xxx',
            user    => "xx",
            require => User["xx"]
}

So the above will create an authorized_keys value like:
ssh-rsa xxxx removed for brevity xxx r...@somehost

But if I need the same key installed for a different user, I'm stuck --
I can't use the same resource name to create the "r...@somehost"
restriction.  And I can't see another way to specify that value.

Is there any way to accomplish this, without abandoning
ssh_authorized_key?  Thanks in advance.
-Alan


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to