So how about a slightly less trivial example, such as configuring a
haproxy config based on the addresses of 2 web servers?

THe puppetmaster knows the addresses of the 2 web servers; it knows
the proxy is a proxy, and the form of the config file, but I cant see
how to put all that information together, except outside puppet. (Such
as having the web servers export their addresses to the puppetmaster,
which has an external script to use that information to modify the
template in the puppet configuration that the proxy module uses.)



On May 12, 12:04 am, Felix Schäfer <schae...@cypres-it.com> wrote:
> Hello,
>
> Am 12.05.2009 um 08:51 schrieb steverfran...@gmail.com:
>
> > 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...
>
> No, but I think you could build the ntp.conf for the clients on the  
> monitor host (which knows its own IP adress :-) ) and distribute that  
> through exported resources to the clients.
>
> BR,
>
> Felix
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to