On Wednesday, May 8, 2013 8:47:59 AM UTC-5, Bret Wortman wrote:
>
>
> Okay, so if the class actually looks like this, say:
>
> class blacklisted () {
>
>     Package {
>         ensure => absent,
>         tag => "blacklisted",
>     }
>
>     package { 'pkg1': }
>     package { 'pkg2': }
>     package { 'pkg3': }
>     :
>     package { 'pkg30': }
>
>     file { '/path/to/file1':
>         ensure => present,
>     }
>
>     Package<| tag == 'blacklisted' |> -> File['/path/to/file1']
>
> }
>
> Should do it, right? I've never done anything with tags before, but this 
> may cause me to rework a few modules I've written....
>
>>
>>

Yes, that should work, but if you're going to use resource defaults then I 
don't see why you would want to go the long way around through tags.  
Instead, just use 'before' as in my last suggestion, and skip the collector 
and chain expression.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to