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;
}
On Tue, Sep 6, 2011 at 5:13 AM, Francis GALIEGUE <[email protected]> wrote:
> Let's say I have a web application which I want to deploy separately:
>
> * the static content and appropriate configuration on a machine with
> Apache on it,
> * the dynamic content and appropriate configuration on a machine with
> Tomcat on it.
>
> Is there a possibility to write a module which takes as an argument
> the name of the Apache node and the name of the Tomcat node, along
> with appropriate configurations for Apache and Tomcat, and which would
> do what is appropriate so that this web application be
> installed/updated/removed?
>
> --
> 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.
>
>
--
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.