Hi, I'm currently trying to achieve the following: a program's listen port changes depending on the presence of another service, specifically with Varnish and Apache.
So for example, if Varnish is installed on a server, Apache should listen on 8080. If it isn't, then Apache should listen on 80. I've found a few ways of doing it, but was wondering if anyone else had run into anything similar and have found a better solution. Possible ways so far: 1. Have Varnish/non-Varnish systems separated by environment and have a conditional in the module which changes the listen port dependent on the environment of the node; 2. Use the 'defined' function (I've done a fair bit of reading on this, and it looks like it isn't really recommended due to parse order issues, and might even be removed in a future Puppet release) 3. Have the Varnish module create a resource of some sort and have the Apache module check for its existence. But I assume I will run into parse ordering issues with this, unless I put Varnish in a pre run stage or similar. Thanks :) -- 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.