Hi all, I appreciate any help about 2 questions.

 First one is about how to avoid duplicate lines in authorized_keys,
having something like :

 define add_ssh_key( $key, $type ) {

            $username       = $title

            ssh_authorized_key{ "${username}_${key}":
                    ensure  => present,
                    key     => $key,
                    type    => $type,
                    user    => $username,
                    require => file["/home/$username/.ssh/
authorized_keys"]

            }

    }

 The fact is while I'm looking for solution I found a reference to
file_line customs facts into https://github.com/puppetlabs/puppetlabs-stdlib,
it's amazing functionality for run on agents, so my second question is
about documentacion for customs facts, where can i find it ?

  Thanks in advanced,
   eduardo.

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