Issue #9782 has been updated by Nigel Kersten.
Status changed from Needs Decision to Closed
Ah, we actually solved this off-list:
<pre>
[root@pe-centos5 ~]# puppet resource_type find helloworld
{"name":"helloworld","line":1,"type":"hostclass","file":"/etc/puppetlabs/puppet/modules/helloworld/manifests/init.pp"}
</pre>
You can use this sort of a method in your ENC to work out whether a given
module exists or not.
----------------------------------------
Bug #9782: Puppet (err): Could not find class <foo> for <host> in 2.7.3 on
undefined class
https://projects.puppetlabs.com/issues/9782
Author: Steven Seed
Status: Closed
Priority: Normal
Assignee: Nigel Kersten
Category:
Target version:
Affected Puppet version: 2.7.3
Keywords: undefined class find
Branch:
My ENC has always added some extra classes not defined in puppet (things that I
might end up using later based on the host name, department, or other
attributes associated with the host in my database). In 0.25.5 the undefined
class was reported at (info), in 2.6.9 it was reported as (warning), but in
2.7.3 it's an (err) ? This now causes my catalog to stop processing. Why the
change to error now?
2.6.9:
Puppet (warning): Could not find class tech for mohogany.fas.fa.disney.com
2.7.3:
Puppet (err): Could not find class tech for mohogany.fas.fa.disney.com on node
mohogany.fas.fa.disney.com
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.