[Puppet Users] Configuring hosts with data from other hosts

steverfrancis@gmail.com
Tue, 12 May 2009 06:51:31 -0000

So I want to use facts from one host in the configuration of other
hosts.
Trivial example: setting restrict lines in ntp.conf to allow a
monitoring host to query ntpd on remote hosts.

So if the monitoring host boots with IP 10.2.2.3 (which may change
regularly), and it knows its the monitor host (via some customer
facter plugins), I want some global variable to be available
($monitor_host_ipaddress, type of thing) which could be used in
tempaltes etc for all other hosts.

Exported resources seems close to what I want, but I dont want to
export a file, and copy it to other machines. I want to use
variables.

Or do I have to copy the IP address of the monitor host to each
machine, via an exported resource file, and then process it locally in
an exec script to build the correct ntp.conf?
That doesn''t seem very puppet-ish...

Help?
T.I.A.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---