Issue #8032 has been updated by Jeff McCune. Status changed from In Topic Branch Pending Merge to Merged - Pending Release
# Merged # <pre> commit 768a063099c8c855488728da77e8dd165816fa83 Merge: 474b6b5 a126aee Author: Jeff McCune <[email protected]> Date: Sat Jul 9 15:17:59 2011 -0700 Merge pull request #15 from jeffmccune/ticket/master/8032_create_resources_containment (#8032) Add containment to create_resources </pre> <pre> commit a126aee16294b183d2c6068b46ad8e394d2d95f8 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.
