On 30.3.2012 16:02, Pablo Fernandez wrote:
> So, it seems like hiera('netmask') is actually looking into the node's
> facts! Is this the expected behavior?
>
> This is my hiera.yaml:
> :backends:
> - puppet
>
> :hierarchy:
> - %{hostname}
> - %{environment}
> - group_%{group0}
> - group_%{group1}
> - group_%{group2}
> - group_%{group3}
> - group_%{group4}
> - group_%{group5}
> - group_%{group6}
> - group_%{group7}
> - group_%{group8}
> - group_%{group9}
>
> :puppet:
> :datasource: data
>
> Most of those classes don't even exist. And data::myhost certainly doesn't.
>
> And the place it should be looking into the right variable is:
> class data::group_all {
> $netmask = "255.255.252.0"
> }
>
> (in this case, $group1='all')Does hiera really look up in data::group_all ? If you enable debug for puppetmasterd it should print out the files and classes hiera looks at. $ puppetmasterd --no-daemonize --debug -- Kind Regards, Markus Falb
signature.asc
Description: OpenPGP digital signature
