RE: [Puppet Users] Plugins and Hiera

2012-03-24 Thread Fernandez Pablo
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

RE: [Puppet Users] Plugins and Hiera

2012-03-25 Thread Fernandez 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 {