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

2011-01-20 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is probably the case that you don't have this class present in your autoloader path. For some reason, Puppet needs the class to be in the autoloader even if you don't use it or you run into this exact situation. I think there's a bug filed in th

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

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 02:29, MJ wrote: > 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:

[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::