Hi Felix, yes, I'm trying to reading authorized key files to check
new line. thanks for explain me it's a wrong way. Finally, i realize
about key name content (comment) is essencial and tests are good.

  I appreciate your help,
   regards,
   eduardo.

On 8 jun, 03:55, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote:
> Hi again,
>
> On 06/08/2012 02:26 AM, eduardo wrote:
>
> >  To be more clear, I'm trying to allow the same key for diferents
> > users but also, tests are tell me that ssh_authorized_key
> > functionality always add keys without any previous check of authorized
> > file contents so If the key was there it's inserted on each loop agent
> > -> master, having as result duplicate lines.
>
> the provider will only look at the key name (or comment, as Jo puts it).
> It will never duplicate these names/comments. It will, however, install
> the same key with as many different names as you want.
>
> There is no good way around this issue, except *all* your keys are
> puppet managed. Then you could tell your agent to purge keys.
>
> > err: Could not retrieve catalog from remote server: Error 400 on
> > SERVER: Puppet::Parser::Compiler failed with error Errno::EACCES:
> > Permission denied - /home/ppuser6/.ssh/authorized_keys on node casa
>
> I don't really understand what you're trying to do.
>
> Are you reading authorized_keys files from inside a manifest? That
> cannot work: The puppet master has no access to the files on your agent
> boxen.
>
> If you want ssh_authorized_key to work differently, you will have no
> choice but to deploy a patched provider to your agents.
> Don't do this though - that approach is way beyond advanced.
>
> Please check very carefully exactly what's getting duplicated. You may
> want to send a short example to the list.
>
> Regards,
> 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to