Joel Heenan
2009-Jul-10 00:37 UTC
[Puppet Users] Are tags inherited through nodes or what is a good way to tag lots of nodes at once?
I wanted to do class packages { if tagged("test") { package { "ourapp": ensure => "testversion.xxx" } } } then have node base-test-node { tag("test") } node test01 inherits base-test-node { include packages } but this does not appear to work. It works if I define the tag within the node, but not within the parent node. It also doesn''t work to define a tag in a class and then have it included. How can I tag a group of nodes without having to place a tag in each individual one or am I going about this the wrong way? I don''t want to have two separate branches for test,qa,dev,prod because this will be a lot of work merging. I would prefer to have all the rules then use tags to differentiate. At the moment I''m using variables if $test { } but this has a design smell to it. Joel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---