]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Hiera does not know how to look up anything but top-level values
authorTollef Fog Heen <tfheen@err.no>
Wed, 1 Jan 2014 14:48:31 +0000 (15:48 +0100)
committerTollef Fog Heen <tfheen@err.no>
Wed, 1 Jan 2014 14:48:31 +0000 (15:48 +0100)
modules/roles/manifests/init.pp

index 38572402d4812b2ccb0d51d1214d7f41d513c000..1178aa3ecfb45a9e5e51c25aeb6611da3b955f07 100644 (file)
@@ -1,6 +1,8 @@
 class roles {
 
-       if $::hostname in hiera('roles::puppetmaster') {
+       $roles = hiera('roles')
+
+       if $::hostname in $roles['puppetmaster'] {
                include puppetmaster
        }