On Wednesday, January 16, 2013 9:23:42 AM UTC-6, Gavin Williams wrote: > > John > > Cheers for that... > > Could you expand on *"enhance selectivity by declaring all the relevant > resources virtually, and then using collections with appropriate predicates > to realize only the ones that are wanted for the current target."*? > Have used virtual resources for other bits and pieces, but not familiar > with 'collections'... > > Simplified example:
@user { "alice": tag => 'user'; "bob": tag => 'admin'; } # Realize users tagged as admins, but not other virtual users User<| tag == 'admin' |> Selection predicates may use other resource properties, too, not just tags. See http://docs.puppetlabs.com/puppet/3/reference/lang_virtual.html for (a bit) more information. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/GSYyBJFMBhMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.