Start moving bits from local.yaml to hiera
authorTollef Fog Heen <tfheen@err.no>
Wed, 1 Jan 2014 14:27:33 +0000 (15:27 +0100)
committerTollef Fog Heen <tfheen@err.no>
Wed, 1 Jan 2014 14:30:52 +0000 (15:30 +0100)
hieradata/common.yaml
modules/debian-org/misc/local.yaml
modules/roles/manifests/init.pp

index f1507d9..b6a9005 100644 (file)
@@ -3,3 +3,6 @@ nameservers: []
 searchpaths: []
 resolvoptions: []
 allow_dns_query: []
+roles:
+  puppetmaster:
+    - handel.debian.org
index 0a36a2e..22d742d 100644 (file)
@@ -177,7 +177,6 @@ services:
     - orff.debian.org
   packagesmaster: picconi.debian.org
   packagesqamaster: quantz.debian.org
-  puppetmaster: handel.debian.org
   rtmaster:
     - reger.debian.org
   security_master:
index 5ff2729..3857240 100644 (file)
@@ -1,6 +1,6 @@
 class roles {
 
-       if getfromhash($site::nodeinfo, 'puppetmaster') {
+       if $::hostname in hiera('roles::puppetmaster') {
                include puppetmaster
        }