On 1/4/16 2:33 PM, Dr. Natas wrote:
>     Hey Dirk
> 
> Thanks for the pointing to my mistake.
> I got it working by simply adding the following code. I'm still in my
> beta testing and will continue to modify my code a lot better. I'll post
> what I have when I'm done. Thanks for taking part of your day to helping
> me out. By the way, happy late new years!
> 
> |
> # Collect SSH keys from all Unix hosts and store them in ssh_known_hosts
> # so that all managed hosts will automatically know each other.
> 
> class ssh_keys {
>   # Declare the exported resource
>   @@sshkey { $::fqdn:
>     type => rsa,
>     key  => $sshrsakey
>   }
> 
>   # Collect all keys:
>   Sshkey <<| |>> 
> 
>   ssh_authorized_key { 'test@account2':
>     user   => 'test.two',
>     type   => 'ssh-rsa',
>     ensure => present,
>     key    => 'this-is-the-best-burrito2',
>     }   
> }
> |
> 
>  

Hi Dr. Natas,

Check out my Puppet Approved ssh module[1]. It handles the functionality
that you described and let's you easily specify[2] authorized keys.

[1] - https://forge.puppetlabs.com/ghoneycutt/ssh
[2] -
https://github.com/ghoneycutt/puppet-module-ssh#manage-users-ssh_authorized_keys

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/568ADF9A.6050104%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to