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']?
↧