[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread MJ
p and just not using it. > > Unfortunately, I don't currently know of a way around this. > > Trevor > > On 01/18/2011 05:29 AM, MJ wrote: > > > I'm trying to detect if a class has been defined as is indicated at > >http://docs.puppetlabs.com/references/stab

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread MJ
> Hum, I get the feeling there is more than just this removal scenario > that's bugging you. However, there are rather elegant solutions in the > DSL for that, so I'll elaborate on this and maybe inspire you to some > other approaches that may help with other problems as well. You are correct, the

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-19 Thread MJ
On Jan 19, 12:58 am, Felix Frank wrote: > On 01/19/2011 12:39 AM, MJ wrote: > > > I'm suspect it is one of the "subtle and strange" behavoir.  I suppose > > I should have just posted a link to the code in git hub.  I guess I > > was expecting that this wo

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-18 Thread MJ
more. Using 'inline_template' to effectively let me do an 'eval( $software::$name::ensure )' wasn't my first inclination, but at the time it was what made the most sense. Thanks for taking the time to respond to my not-so-complete inquiry. It is much appreciated. On Jan 18

[Puppet Users] if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-18 Thread MJ
I'm trying to detect if a class has been defined as is indicated at http://docs.puppetlabs.com/references/stable/function.html#defined However, this check always results in the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class software::