Issue #4655 has been updated by Jacob Helwig.

Status changed from Accepted to Available In Testing Branch

Merged into `2.6.next` in commit:72cd6fb383335a62d2d1ab656cdff39c34de0f19 and 
`next` in commit:05fb2257c1f047b652abea9682718943b18e325b

This was addressed by transplanting adding the edge from the resource to the 
stage from being in the compiler to being where the resource is evaluated.  
This moved adding the stage edges to after when the defaults are copied into 
the resources, making them available for setting the class stage.
----------------------------------------
Bug #4655: Parametrized class ignores default metaparameter 'stage'
https://projects.puppetlabs.com/issues/4655

Author: Frederik Wagner
Status: Available In Testing Branch
Priority: High
Assignee: 
Category: 
Target version: 2.6.x
Affected Puppet version: 2.6.1
Keywords: staging, parametrized class
Branch: 


It is not possible to set the 'stage' metaparameter with a default value in a 
class definition.    A construct like the folllowing will run all resources in 
'someclass' in Stage[main] anyway.

    stage{ pre: before => Stage[main] }
    class someclass ($stage=pre ) { ... }
    class { someclass: }

Puppet will just issue the following warning, when running:
    warning: stage is a metaparam; this value will inherit to all contained 
resources

This seem to me a major bug, since using default values for 'stage' is the only 
way to use the staging feature with external nodes as long there is no API for 
passing default parameters in the external nodes scripts.


-- 
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.

Reply via email to