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

list resources based on a specific parameter value

$
0
0
I would like to create an array of resource titles. The resource titles should all come from a list of resources that have a specific value for a certain parameter. The resources are created based on a hash I have in a yaml file. To list these resources I could use a resource collector `Type<| parameter == 'value' |>` But then I'm kind of stuck. How to use this list and create an array with all the resource titles in it. This array would then later be used as the value for a parameter in another resource. Am I on the right track, or is there a better way of handling this kind of situations?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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