Hey Trevor,

Thanks for the reply.  This thread is way off topic from the original
problem which has been resolved.  Just to clarify for anyone running
into the same problem, the issue was simply the syntax I was using.  I
was checking if a class was defined like this:

   defined( Class["class::subclass"] )

The correct syntax is:

   defined( "class::subclass" )

The documentation is not clear on the proper way to do this.  I've
filed a bug report with so this should be getting clarified in the
documentation.  The specific ticket can be viewed here:

https://projects.puppetlabs.com/issues/5944


On Jan 20, 7:04 pm, Trevor Vaughan <tvaug...@onyxpoint.com> wrote:
> -----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 the Puppet Redmine about it. If there's
> not there should be ;-).
>
> Try just declaring the class somewhere that the autoloader will pick it
> up 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/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::mongodb at /etc/puppet/modules/
> > software/manifests/init.pp:36 on node X.XXXX.com
>
> > Line 36 is the "if defined" line which doesn't make any sense as this
> > line is supposed to trap that exact condition.  Has anyone else run
> > into this and / or figured out a way around it?  Thanks.
>
> - --
> Trevor Vaughan
>  Vice President, Onyx Point, Inc.
>  email: tvaug...@onyxpoint.com
>  phone: 410-541-ONYX (6699)
>  pgp: 0x6C701E94
>
> - -- This account not approved for unencrypted sensitive information --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEcBAEBAgAGBQJNOPe1AAoJECNCGV1OLcypvAIH+wQFZ6wWHyLV4QD3TBVxKCwI
> GAMbyDASDTz0XW2Br6rl271LGLzoOJAqRxu5oTUWjTKtaSX7xxkjtUcRbGmBU4X8
> 0yePO4fnw0yqwYxjNQ/UPDJxDDeNI9Pg2dtyR7XVxuM/SVKltfgKVbM1qJcSthcK
> eku9oI9b4uDE0o6T9hC5mcTHAH7+XKhB8d+lmP8Xn4ZG0bTapV+IOZUTcCuOr3jL
> NJ9cKXS/lc2Iy2Z3ToZRiNFHUsXNUbZr98LHmk54xJth/x2QbrmmySf2cv42Wxm6
> hEi4LzOpjLKIQdOn+/S5hQnxD43zNfXJJA6e3kZc0t0BqDc8Dhl0CvjS31UBmqg=
> =Mv45
> -----END PGP SIGNATURE-----
>
>  tvaughan.vcf
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to