Hi , 
I was testing  puppet exported resources as in  
http://docs.puppetlabs.com/guides/exported_resources.html and I had this 
test class (code is from another post).  

class ssh_known_hosts{ 
        case $sshrsakey {
                '': { alert("No sshrsakey found for $fqdn") }
                default: {

                  @@sshkey { $fqdn:
                        ensure         => present,
                        host_aliases   => [$hostname, $ipaddress],
                        key            => $sshrsakey,
                        type           => rsa,
                  }
                }
          }
    Sshkey <<||>>
}         

I ran it from clients,   

host1:/etc/puppet # puppet agent --test --environment dev 
info: Caching catalog for host1.domain.com
info: Applying configuration version '1341963662'
...

notice: /Stage[main]/Ssh_known_hosts/Sshkey[host1.domain.com]/ensure: 
created
notice: Finished catalog run in 0.56 seconds

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.  

the puppet master is configured with puppetdb  and it's working,  and I 
have this in puppet.conf 

    storeconfigs = true
    storeconfigs_backend = puppetdb


Thanks.  

Clay 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/MguNOhh356EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to