Puppet: System Administration Automated

Support

Ticket #1030 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

including child class is not enough to satisfy "require => Class[parent]"

Reported by: DavidS Assigned to: community
Priority: normal Milestone: 0.24.2
Component: language Version: 0.24.1
Severity: normal Keywords: require Class, include, inherits
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

running the attached file with 0.24.1-1 on debian sid creates the following backtrace:

david@zion:~/tmp/class$ puppet --trace ./class.pp 
/usr/lib/ruby/1.8/puppet/metatype/metaparams.rb:261:in `validate_relationship'
/usr/lib/ruby/1.8/puppet/metatype/metaparams.rb:258:in `each'
/usr/lib/ruby/1.8/puppet/metatype/metaparams.rb:258:in `validate_relationship'
/usr/lib/ruby/1.8/puppet/type.rb:295:in `finish'
/usr/lib/ruby/1.8/puppet/type.rb:293:in `collect'
/usr/lib/ruby/1.8/puppet/type.rb:293:in `finish'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:265:in `finalize'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:265:in `each'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:265:in `finalize'
/usr/bin/puppet:206
Could not find dependency Class[muh]
david@zion:~/tmp/class$ 

Changing the "include muh2" to "include muh" or requiring "Class[muh2]" instead of "Class[muh]" makes the attached file valid.

Attachments

class.pp (205 bytes) - added by DavidS on 01/28/08 13:27:13.
the test manifest

Change History

01/28/08 13:27:13 changed by DavidS

  • attachment class.pp added.

the test manifest

02/05/08 07:29:37 changed by luke

  • stage changed from Unreviewed to Accepted.
  • milestone set to 0.24.2.

02/12/08 16:37:46 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [6a4cf6c].