[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-20 Thread jcbollinger
On Monday, August 19, 2013 10:32:39 PM UTC-5, Florian Gray Jones wrote: > > ok, that's great. Thanks for the help. > > The puppet-docs it says: "*Modules are how Puppet finds the classes and > types it can use* — it automatically loads any > class

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Ellison Marks
Since in this case, it's checking that supervisor::service exists so it can declare one, I'd say checking for just 'supervisor::service' would be fine. You may want to stay around and see what other people think though, as I could be missing something. Looking at it again, the check to see if a

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Florian Gray Jones
ok, that's great. Thanks for the help. The puppet-docs it says: "*Modules are how Puppet finds the classes and types it can use* — it automatically loads any class or defined type

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Ellison Marks
So, I can't speak to the authors intentions, but I'll do my best to explain the behavior. As you guessed defined() behaves differently based on what is passed to it. If passed a resource reference, as it is in the module, it will check that that resource has been declared. if passed a string, i