Hi,

On 05/10/2011 12:21 PM, Arnau Bria wrote:
> Hi all,
> 
> I'm trying to add same ssh key to two diff accounts and I'm getting
> an error.
> 
> My code:
>                       'key_1'
>                                 name    => 'arnau@my_pc.domain',
>                                 user    => 'user1',
>                                 key     => "rsa_key";
> 
>                         'key_2':
>                                 name    => 'arnau@my_pc.domain',
>                                 user    => 'user2',
>                                 key     => "rsa_key";
> 
> On the client the error is:
> 
> 
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias 
> Ssh_authorized_key[key_1] to ["arnau@my_pc.domain"]; resource 
> ["Ssh_authorized_key", ["arnau@my_pc.domain"]] already exists at 
> /etc/puppet/manifests/services/common/modules/common_si/manifests/init.pp:165 
> on node XXXXX.pic.es
> 
> Is there something wrong in my code?

yes, you're declaring the same resource twice.

> Am I trying to do something not supported?

Yes.

> Anyone faced this before? how did you solve it?

I helped someone with a similar issue here before.

Just rename on of the keys. The "name" of a public key is really quite
arbitrary and SSH doesn't use it for anything important (that I am aware
of).

Cheers,
Felix

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

Reply via email to