Issue #8032 has been updated by Jeff McCune.

# Merged into 2.7.x #

Reading the Developer Lifecycle and Iteration Release Process documents, I'm 
not sure this should have been merged into master since it's a bug on 2.7.x.

<pre>
commit 8fe2e555ac3d57f5b6503ffe1a5466db8d6e190a
Merge: d58eacd 5826f73
Author: Jeff McCune <[email protected]>
Date:   Sun Jul 10 12:57:23 2011 -0700

    Merge branch 'ticket/2.7.x/8032_create_resource_containment' into 2.7.x
    
    * ticket/2.7.x/8032_create_resource_containment:
      (#8032) Add containment to create_resources

commit 5826f7399325c784a5e8e33c7fabc46e202334a8
Author: Jeff McCune <[email protected]>
Date:   Tue Jun 21 18:54:35 2011 -0700

    (#8032) Add containment to create_resources
    
    Without this change native resource types declared using the
    create_resources() function are not contained within the class scope of
    the function call.  As a result, resources were "floating off" in the
    graph, disconnected from the rest of the relationship edges.
    
    With this change, the scope is preserved and native resources are
    contained by the class the function call is executed from.
    
    Reviewed-by: Dan Bode <[email protected]>
</pre>
----------------------------------------
Bug #8032: create_resources should contain native types in the local scope
https://projects.puppetlabs.com/issues/8032

Author: Jeff McCune
Status: Merged - Pending Release
Priority: Normal
Assignee: Dan Bode
Category: functions
Target version: 
Affected Puppet version: 2.7.0rc3
Keywords: create_resources native type graph containment contain
Branch: 


# Overview #

As currently implemented, if create_resources is used with a native type, e.g. 
group, the resources are not contained within the class container.

For example:

<pre>
class groups {
  $groups = { 'one' => { 'ensure' => 'present' } }
  create_resources('group', $groups)
}
notify { 'alpha': }
->
class { 'groups': }
->
notify { 'omega': }
</pre>

The graph produced by this manifest should have Group['one'] fully contained 
from a relationship perspective within the alpha and omega notifications.

However, the group resource floats off in the graph and relationships do not 
hold.



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