Bug #7533

subclass stage doesn't apply to baseclass

Added by Kevin Cai about 1 year ago. Updated 11 months ago.

Status:Accepted Start date:05/16/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:2.7.x
Affected Puppet version: Branch:
Keywords:
Votes: 0

Description

when use class inheritance, given subclass’s stage doesn’t apply to base class. Following is an example,

class base {
   # definitions of base class
}

class child inherits base {
   # definitions of sub class
}

Now have following nodes configure

node default {
    class {child: stage => pre }
}

All resources defined in sub class will be associated to Stage[pre], but resources in base class still run in Stage[main].

Any resolution to this?

As including sub class Class[child], we can’t include Class[base] again. Shouldn’t the base class running on the same stage as subclass?

History

Updated by Kevin Cai about 1 year ago

  • Target version set to 2.6.x

puppet version 2.6.2

Updated by Zach Leslie 12 months ago

  • Status changed from Unreviewed to Accepted

Updated by Nigel Kersten 11 months ago

  • Target version changed from 2.6.x to 2.7.x

We’re only targeting critical updates at the 2.6.x series now that 2.7.x has been released. Bumping to 2.7.x

Also available in: Atom PDF