[Puppet Users] Re: Conditional based on other module

2012-06-08 Thread Andy Taylor
Thanks for the advice (again!) John. I'd like to avoid the restrictions that the subclass would cause, so will probably just create a separate environment and change the port based on that. Thanks for distinguishing parsed and applied, was getting a bit mixed up I think. Andy On Jun 7, 3:04 pm, j

[Puppet Users] Re: Conditional based on other module

2012-06-07 Thread jcbollinger
On Jun 7, 4:30 am, Andy Taylor wrote: > 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 o

[Puppet Users] Re: Conditional based on other module

2012-06-07 Thread Andy Taylor
Thanks for your reply Fenix. By environment I meant Puppet environment, so for example, I'd have production and development. Production contains Varnish, Development is always non-Varnish. I then have a selector in the apache module which, depending on the environment, grabs a Hiera value, so somet