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

Is it possible to collect variable values from resources?

$
0
0
Hi! I would like to know, is it possible to collect variable values from a group of resources to use them in the template in another class? Or is there any other way to collect and reuse values from resources? Let's say, we have a configuration: define site (var1 = undef) { some code } class sites { site{"blabla.com": var1 => 'bla-1-bla', } site{"secondsite.com": var1 => 'some-other-value', } } Is it possible to generate the array that contains all var1 values of all 'site' resources, like ['bla-1-bla','some-other-value']?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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