[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-20 Thread MJ
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/stable/function.html#defined However, this check always results in the following error: err: Could not retrieve catalog from remote server

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

2011-01-19 Thread MJ
On Jan 19, 12:58 am, Felix Frank felix.fr...@alumni.tu-berlin.de 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 would be something

[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

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

2011-01-18 Thread MJ
, 2011 at 02:29, MJ m...@revmj.com 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: Error