On Tue, Sep 6, 2011 at 16:59, Brian Gallew <[email protected]> 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 [email protected] 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 [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.
