>
> 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',
    }   
}

 

-- 
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/497599b3-cea0-45df-8440-0aaeee3857e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to