]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/manifests/init.pp
Hiera does not know how to look up anything but top-level values
[dsa-puppet.git] / modules / roles / manifests / init.pp
index d76823d10f6cf5805463559062ec660d57388d8d..1178aa3ecfb45a9e5e51c25aeb6611da3b955f07 100644 (file)
@@ -1,6 +1,8 @@
 class roles {
 
-       if getfromhash($site::nodeinfo, 'puppetmaster') {
+       $roles = hiera('roles')
+
+       if $::hostname in $roles['puppetmaster'] {
                include puppetmaster
        }
 
@@ -62,6 +64,10 @@ class roles {
                include roles::wiki
        }
 
+       if getfromhash($site::nodeinfo, 'syncproxy') {
+               include roles::syncproxy
+       }
+
        if getfromhash($site::nodeinfo, 'static_master') {
                include roles::static_master
        }
@@ -80,7 +86,68 @@ class roles {
                include roles::mailrelay
        }
 
+       if getfromhash($site::nodeinfo, 'pubsub') {
+               include roles::pubsub
+       }
+
        if $::hostname in [ravel] {
                include roles::weblog_destination
        }
+
+       if $::hostname in [vento] {
+               ssl::service { 'vote.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [soler] {
+               ssl::service { 'security-tracker.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [bendel] {
+               ssl::service { 'lists.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [reger] {
+               ssl::service { 'rt.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [diabelli] {
+               ssl::service { 'sso.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [ullmann] {
+               ssl::service { 'udd.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+       
+       if $::hostname in [wuiet] {
+               ssl::service { 'buildd.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [pejacevic] {
+               ssl::service { 'piuparts.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
+
+       if $::hostname in [nono] {
+               ssl::service { 'nm.debian.org':
+                       notify => Service['apache2'],
+               }
+               ssl::service { 'contributors.debian.org':
+                       notify => Service['apache2'],
+               }
+       }
 }