X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Finit.pp;h=21559a8bc11d37bb1560c7c03c617be5f1877820;hb=683ffc212c9c3a4d7e4a4ff98c94fb52a75a02ca;hp=1f2c21631e0b994988a030ad91f529f3870a72d0;hpb=0b051f15c69c25d1f7ab875b33e7d0887bfee3f2;p=dsa-puppet.git diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 1f2c2163..21559a8b 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -1,6 +1,8 @@ class roles { - if getfromhash($site::nodeinfo, 'puppetmaster') { + $roles = hiera('roles') + + if $::fqdn in $roles['puppetmaster'] { include puppetmaster } @@ -8,15 +10,15 @@ class roles { include munin::master } - #if getfromhash($site::nodeinfo, 'nagiosmaster') { + if getfromhash($site::nodeinfo, 'nagiosmaster') { # include nagios::server - #} + ssl::service { 'nagios.debian.org': + notify => Service['apache2'], + } + } if getfromhash($site::nodeinfo, 'buildd') { include buildd - ssl::service { 'buildd.debian.org': - notify => Service['apache2'], - } } if getfromhash($site::nodeinfo, 'porterbox') { @@ -91,10 +93,29 @@ class roles { include roles::pubsub } + if getfromhash($site::nodeinfo, 'dbmaster') { + ssl::service { 'db.debian.org': + notify => Service['apache2'], + } + } + + if getfromhash($site::nodeinfo, 'dns_primary') { + include named::primary + } + if getfromhash($site::nodeinfo, 'dns_secondary') { + include named::authoritative + } + 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'], @@ -107,11 +128,29 @@ class roles { } } + 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': @@ -127,4 +166,10 @@ class roles { notify => Service['apache2'], } } + + if $::hostname in [franck] { + ssl::service { 'release.debian.org': + notify => Service['apache2'], + } + } }