Hello,
I want to use exported resources (namely sshkey) and with the following
code, each node gets his own ssh key written into /etc/ssh/ssh_known_hosts,
but not the others ones. This is with puppet 0.24.7 on redhat.
node 'node1' {
@@sshkey { "node1":
type => rsa,
key => $sshrsakey
}
Sshkey <<| |>>
}
node 'node2' {
@@sshkey { "node2":
type => rsa,
key => $sshrsakey
}
Sshkey <<| |>>
}
...
I have this working as expected on another set of hosts (debian with puppet
0.24.7).
When I compare the output of puppetmaster logs with --debug, I obtain this
on the working one:
debug: Scope(Node[node1]): Collected 1 Sshkey resource in 0.06 seconds
And this where exported resources don't work:
debug: Scope(Node[node1]): Collected 1 Sshkey resources in 0.00 seconds
debug: Scope(Node[node1]): Collected 0 Sshkey resources in 0.00 seconds
Another significant difference I noticed so far is that this query returns
no rows on the puppetmaster which doesn't work as expected:
SELECT * FROM `resources` WHERE (exported=1);
I'm seeking pointers on how the exported resource storage mechanism works,
how to track down what's misbehaving in my case. Any idea why the
collect_exported function in collector.rb seems to be running twice ?
Thanks !
Marc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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
-~----------~----~----~----~------~----~------~--~---