On Mon, Aug 17, 2009 at 07:03:16PM -0500, Chris Blumentritt wrote:
> I am trying to manage ip address aliases and I cannot come up with a good
> strategy.  I have three webhead servers that are balanced via a hardware
> load balancer.  I have a define that will be setting up website config on
> each server and one piece I need to sort out is configuring ip addresses on
> the server and then configuring the apache virtual host with the
> corresponding ip address for the host.  A sort of visual way to see what I
> am doing
> 
> class site_name { ... } --> define setup_site { ...}
> 
> The site_name class setups variables and the define does all the work based
> on the variables.  I would like to setup a ip addresses that will be
> balanced for each site.  And then do all of that with multiple sites.
> 
> I fear the way to go about this is to set the ip address at the node and
> then use the fact ipaddress_ethx:y but this means I will have to have an
> interface to site mapping somewhere.  I would rather just keep it all in
> puppet somehow.
> 
> Any guidance is appreciated.

AFAICT, you're going to need some way of determining, based on the information
you get from facts, which server gets which IP address.  You could do this with
an external node classifier, or some algorithm (custom functions could help
here).

Don't know if anyone can provide better ideas than that, but hopefully this
gives you somewhere to start.

Cheers,

-- 
Eric Gerlach, Network Administrator
Federation of Students
University of Waterloo
p: (519) 888-4567 x36329
e: egerl...@feds.uwaterloo.ca

--~--~---------~--~----~------------~-------~--~----~
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