Re: [Puppet Users] Managing known_hosts

2010-03-14 Thread Oliver Schad
Am Sunday 14 March 2010 schrieb mir Peter Meier: > collecting exported resources. > > You find more about that here: > http://projects.reductivelabs.com/projects/puppet/wiki/Exported_Resourc > es > > > It es very powerful if you want to distribute "configurations" related > to one host to anothe

Re: [Puppet Users] Managing known_hosts

2010-03-14 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi >> # Collect ssh keys and add them to /etc/ssh/ssh_known_hosts >> case $sshrsakey { >> '': { alert("No sshrsakey found for $fqdn") } >> default: { >> @@sshkey { $fqdn: > ^^ exporting resources >> alias => [$host

Re: [Puppet Users] Managing known_hosts

2010-03-14 Thread Oliver Schad
Am Saturday 13 March 2010 schrieb mir Todd Zullinger: > # Collect ssh keys and add them to /etc/ssh/ssh_known_hosts > case $sshrsakey { > '': { alert("No sshrsakey found for $fqdn") } > default: { > @@sshkey { $fqdn: ^^ > alias => [$hostname, $ipaddress], >

Re: [Puppet Users] Managing known_hosts

2010-03-12 Thread Todd Zullinger
Douglas Garstang wrote: >>> http://docs.reductivelabs.com/references/stable/type.html#sshkey > > WHat about known_hosts??? For /etc/ssh/ssh_known_hosts, using exported resources is quite handy: http://reductivelabs.com/trac/puppet/wiki/ExportedResources Something like: # Collect ssh keys and

Re: [Puppet Users] Managing known_hosts

2010-03-12 Thread Douglas Garstang
On Fri, Mar 12, 2010 at 10:47 AM, Douglas Garstang wrote: > Oh, yes, right... duh... thanks. > > Definitely better than append_if_no_such_line() which dumps the key to the > log. > > On Fri, Mar 12, 2010 at 9:54 AM, Peter Meier wrote: >> Hi >> >>> I have multiple modules that need to use ssh int

Re: [Puppet Users] Managing known_hosts

2010-03-12 Thread Douglas Garstang
Oh, yes, right... duh... thanks. Definitely better than append_if_no_such_line() which dumps the key to the log. On Fri, Mar 12, 2010 at 9:54 AM, Peter Meier wrote: > Hi > >> I have multiple modules that need to use ssh into remote servers >> without being prompted for a password, and therefore

Re: [Puppet Users] Managing known_hosts

2010-03-12 Thread Peter Meier
Hi I have multiple modules that need to use ssh into remote servers without being prompted for a password, and therefore multiple places that I need to manage/add to a known_hosts file for. If I simply put a copy of known_hosts in the files/ directory of the module, and push it out, any other mo