I'm using Puppet to manage my Tomcat configuration, including my server.xml
file and a potentially shifting set of war files depending on the node.
I'm also using Tomcat's virtual-host capability, which involves adding a
<Host/> element in the server.xml file for each virtual-host I wish to
activate.  The tricky bit is that each webapp/war has a different, possibly
overlapping, virtual-host.  Since I'd rather not list EVERY potential
virtual-host in the server.xml file, I'd like some way of collecting the set
of activated virtual-host names and then generating my server.xml file with
the appropriate entries.  I'm not sure how to do this.

One idea is to have a master variable of virtual-host names: something like
$Tomcat::hosts.  I could use Puppet's variable appending feature to extend
the set of hosts:

  $Tomcat::hosts += ['some.host.name']

The only issue with this is that it could lead to duplicate entries if two
webapps have the same virtual-host (a possibility).

Is this maybe the purpose of virtual resources?  How might I go about using
them here?

I don't really have any good ideas on this, so any help is appreciated.

Thanks,
Brian

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