Issue #5295 has been updated by Jeff McCune.

Nigel,

Since this ticket is closely related to the data / model separation could you 
re-evaluate the priority of this ticket with any updated information you have 
about the PDL?

Should this ticket still be "Low" priority at this point in time?

Thanks,
-Jeff
----------------------------------------
Feature #5295: Should be possible to include a class multiple places with a 
fixed scope
https://projects.puppetlabs.com/issues/5295

Author: Jeff McCune
Status: Investigating
Priority: Low
Assignee: Nigel Kersten
Category: language
Target version: 
Affected Puppet version: 
Keywords: scope puppet defaults virtual parameterize class variable
Branch: 


## Overview ##

Currently, if a classes is included using the "include" statement from multiple 
locations in a puppet manifest, the resulting scope of the included class is 
determined by the lexical ordering of the parser.

## The Problem ##

If the a class is included again, earlier in the lexical ordering of the 
parser, then the behavior of the entire system will change as a result of 
variables and resource defaults no longer being in the scope of the included 
class.

## Issues to Resolve ##

* The puppet language should provide a way to evaluate a class, attaching it to 
a specific scope.
* The puppet language should allow an arbitrary number classes to trigger the 
evaluation of a class in a specific scope.

## Suggestions ##

We face a similar problem with resource declarations and have addressed this 
problem through the use of virtual resources.  A resource is declared once, in 
one specific scope, then realized from multiple locations.  In order to improve 
consistency of behavior among similar concepts in puppet, parameterized classes 
could support virtual declarations and realization.


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