On Tue, Sep 6, 2011 at 16:59, Brian Gallew <g...@gallew.org> wrote:
> I do this with a define.  In my case, I define a web application and pass in
> several arrays of hosts.  This expands, in turn, to a series of if
> statements that check to see which array (if any) $hostname is in and then
> sets appropriate variables.  I use this to generate Nagios hostgroups,
> assign roles, generate configuration files, etc.  And since the ugliness is
> all in the define, the manifest is very readable, e.g.
> complete_app_environment{ "Production Reno"
>   app_servers => [host1, host2, host3],
>   web_servers => [host4, host5],
>   solr_servers => [host6, host7],
>   mule_servers => [host8, host9],
>   external_name => foo.bar.com;
> }
>

Hmm, can you elaborate a little more? This looks like what I want...

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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