From: Tollef Fog Heen Date: Wed, 1 Jan 2014 14:48:31 +0000 (+0100) Subject: Hiera does not know how to look up anything but top-level values X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6edb6fb29519ecafa6bc364f554c1f3dea1aced4;p=mirror%2Fdsa-puppet.git Hiera does not know how to look up anything but top-level values --- diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 38572402d..1178aa3ec 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -1,6 +1,8 @@ class roles { - if $::hostname in hiera('roles::puppetmaster') { + $roles = hiera('roles') + + if $::hostname in $roles['puppetmaster'] { include puppetmaster }