Re: [Puppet Users] Re: if tagged scope and autoconfig module

2014-12-08 Thread jcbollinger
On Monday, December 8, 2014 5:26:05 AM UTC-6, Poil wrote: > > Hey thanks, > > I don't understand : in template we can use "classes" that contain all > defined classes. > That is potentially misleading: the

Re: [Puppet Users] Re: if tagged scope and autoconfig module

2014-12-08 Thread Poil
Hey thanks, I don't understand : in template we can use "classes" that contain all defined classes. Is it a good idea to add if defined(Class['::apache']) { require apache; include collectd::apache } Or is a class is like other ressource, only defined when parsed ? (so could be randomly

[Puppet Users] Re: if tagged scope and autoconfig module

2014-12-01 Thread jcbollinger
On Monday, December 1, 2014 2:21:01 AM UTC-6, Poil wrote: > > Hi, > > I try to write an autoconfigure module (collectd) that depends on other > modules included for my node. > If you mean you are writing a module containing declarations that are conditioned on whether other classes or module