Re: [Puppet Users] where is ssh_known_hosts file generated by sshkey ?

Felix Frank
Wed, 11 Jul 2012 14:26:13 -0000

Hi,

On 07/11/2012 02:00 AM, Clay wrote:
>
>
> it shows the entry created,  but where is the file on the puppet master
> server ?  I checked /etc/ssh_known_hosts ( I created a empty one) , but
> it''s still empty.

you are mistaken.

Exported resources are stored *in the database on the master*. The
master won''t get the resources, unless you have an agent on the master
node (most people do) and this agent collects the stored resources.

What happened here is that the agent on host1 exported its own key and
subsequently added it to its own known hosts. Your manifest works such
that each host adds all hosts, including itself.

Cheers,
Felix