One thing I've seen done is something like the following contrived example:

class core{
    @package { 'build essential':
      ensure => 'installed',
      tag    => 'core_packages'
  }
  Package <| tag == 'core_packages' |>
}

>From my probably incomplete understanding, virtualizing and realizing the
packages like this allows for multiple classes to declare the resource, and
as long as the ensure value is the same across declarations, the
declarations can cohaibtate in the same catalog.

Am I missing something that would make this an antipattern as well?
(entirely possible)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAD%2BjnG7UGBNbeZKHBp4bfz5VmQcLL9ONnEZgmvm6Lh%3DPt8h17g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to