Hi,
That would define $primary_group as a variable, not as a fact. Indeed, what I
want to do is:
:backends: - puppet
:hierarchy: - %{primary_group}
:puppet:
:datasource: data
And that requires primary_group to be a fact.
Any other ideas?
Thanks!
Pablo
Hi all,
I have thought myself of a #4 possibility, which could be defining the
hierarchy as:
- %{hostname}
- groups
- all
And then create a class called data::groups with a big IF/CASE inside:
class data::groups {
if 'green' in $::groups {
$var1 = 'whatever'
}
if 'blue' in $groups {