On 06/08/2010 01:54 PM, Klaus Ethgen wrote: > Hi, > > Am Di den 8. Jun 2010 um 17:15 schrieb Michael Semcheski: >> I'm not sure I understand your question, but doesn't this work? > >> ssh-keyscan -t dsa,rsa hostname > > Sure. > > But that is exact the point. If I collect the information with > ssh-keyscan there is a little change that the key is wrong and not the > one of the machine. Puppet give a nice way to collect the ssh keys of > all hosts it manage from facter. And it provides also a nice way to > spread all that collected keys to all machines known-hosts file. > Unfortunately the key for the key (ehem, I hope you can follow. ;-) is > the host name so you have to choose which one of each host you want to > spread to all machines.
This is one of the cases where 'tags' are really useful. You can tag something like tag => "for_collection" in the exported resource, then when you collect the exported resource, you would do Sshkey <<| tag => "for_collection" |>>. > > Regards > Klaus Ethgen > > Ps. Disclaimer: This mail is in British English and not in puppet > English. That means I use terms like "collect" in the British > meaning and _not_ for the puppet meaning. Right but it serves no one including yourself to continue using a technical term in a technical forum when you really mean some other concept or principle. It seems like exactly what you want is collecting exported resources. I recommend checking wiki:ExportedResource if what I am saying makes no sense. -- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode L'ennui est contre-révolutionnaire -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.