Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Why would one use "resource collectors"?

$
0
0
I was looking at the OpenStack modules on Puppet Forge. These modules make use of "resource collectors" so I was reading up on "resource collectors" here: https://docs.puppet.com/puppet/latest/reference/lang_collectors.html I still cannot figure out why one would need to use a resource collector? Here's a example where the OpenStack/puppet-keystone module uses a resource collector: if !is_service_default($memcache_servers) or !is_service_default($cache_memcache_servers) { Service<| title == 'memcached' |> -> Anchor['keystone::service::begin'] } I guess this would do resource ordering; causing the memcached service resource to execute before the keystone::service::begin Anchor. I don't really know what an Anchor is. I am guessing its used for resource ordering???

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>