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 fge@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 <fge@one2team.com> 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 > fge@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+unsubscribe@googlegroups.com. > 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Sep 6, 2011 at 3:13 PM, Francis GALIEGUE <fge@one2team.com> 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?Thats one of the reasons of why I started the stacker application [1], would be nice to know if it answers your usage case. Screencast here: http://ohadlevy.fedorapeople.org/stacker.ogv Ohad [1] https://github.com/ohadlevy/stacker> > -- > Francis Galiegue > ONE2TEAM > Ingénieur système > Mob : +33 (0) 683 877 875 > Tel : +33 (0) 178 945 552 > fge@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+unsubscribe@googlegroups.com. > 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Sep 6, 2011 at 16:59, Brian Gallew <geek@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 fge@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.