I''m trying to use tags in templates. I have a resource declared as : define apache::instance($instance_name=$title,$mpm=''worker'') { tag("declared-apache-$instance_name") ... } this resource is called in the class apache : class apache{ ... apache::instance{$instances: } } and then a class declared is called after the apache class : class{''declared::log'': require => Class[''apache''] } this class create a file : class declared::log { file {''/var/lib/puppet/declared.txt'': content => template(''declared/declared.txt.erb''), mode => ''0640'', owner => ''root'', group => ''0'', } } And then in declared.txt.erb, I enumerated every tags : <% all_tags.sort.each do |tag| -%> The tag <%= tag %> is defined <% end -%> <% tags.sort.each do |tag| -%> The tag <%= tag %> is part of the current scope <% end -%> So the file /var/lib/puppet/declared.txt is created after the tag "declared-apache-$instance_name" has been created. But in the file /var/lib/puppet/declared.txt, I can''t see this tag. I see all the implicite tags, for example : ... The tag apache is defined ... So I''m sure it have been created in the right order, after the class apache. But my manually declared tag is nowhere to be seen. Does someone have any idea what am i doing wrong ? -- 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.