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?
Am I trying to do something not supported? 
Anyone faced this before? how did you solve it?

TIA,
Arnau

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to