Issue #2416 has been updated by Brice Figureau.
Nigel Kersten wrote: > I was attempting to clean something up today where we have a large collection > of resources that all must be applied 'before' another resource, but not all > those resources are necessarily defined for all clients, so we end up needing > to scatter 'before' calls all over the place rather than having a central > 'require'. > > It would be awesomely useful if you could do: > > <code> > require => Tag["foo"], > </code> > > and all resources tagged with that tag were required. Same goes for before. That would be very cool! I don't really like the Tag part, imagine if you have a class named tag, it would collide. On the other hand I fail to find a better idea... > I have no idea how feasible this is though. I don't know either, but what I'm sure is that can generate some dependencies cycles if not used carefully :-) ---------------------------------------- Feature #2416: Ability to specify Tags in the require/before metaparameters http://projects.reductivelabs.com/issues/2416 Author: Nigel Kersten Status: Accepted Priority: Normal Assigned to: Category: transactions Target version: Complexity: Unknown Affected version: 0.25.0 Keywords: I was attempting to clean something up today where we have a large collection of resources that all must be applied 'before' another resource, but not all those resources are necessarily defined for all clients, so we end up needing to scatter 'before' calls all over the place rather than having a central 'require'. It would be awesomely useful if you could do: <code> require => Tag["foo"], </code> and all resources tagged with that tag were required. Same goes for before. I have no idea how feasible this is though. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
