X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Finit.pp;h=cf85807f0deb2afde882c5441a9b6c163910649b;hb=40ea2eb95b19f449abb6f60b04caccd8e4a7510b;hp=371a99bab828716d61b8e469b38ba8df21800ec4;hpb=8e8ba57589b41c53f9885c4ad173a16ae94ae33f;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 371a99bab..cf85807f0 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -7,55 +7,18 @@ # include roles # class roles { - - if has_role('puppetmaster') { - include puppetmaster - } - if has_role('muninmaster') { include munin::master } if has_role('nagiosmaster') { - # include nagios::server - ssl::service { 'nagios.debian.org': - notify => Exec['service apache2 reload'], - key => true, - } - } - - # XXX: turn this into a real role - if getfromhash($site::nodeinfo, 'buildd') { - include buildd - } - - # XXX: turn this into a real role - if getfromhash($site::nodeinfo, 'porterbox') { - include porterbox - } - - if has_role('bugs_mirror') { - include roles::bugs_mirror - } - - if has_role('bugs_base') { - ssl::service { 'bugs.debian.org': - notify => Exec['service apache2 reload'], - key => true, - } - } - if has_role('bugs_master') { - ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, } + include nagios::server } if has_role('manpages-dyn') { include roles::manpages_dyn } - if has_role('archvsync_base_additional') { - include archvsync_base - } - # archive.debian.org if has_role('historical_mirror') { include roles::historical_mirror @@ -70,9 +33,6 @@ class roles { if has_role('debian_mirror') { include roles::debian_mirror } - if has_role('ftp.d.o') { - include roles::ftp - } if has_role('ftp_master') { include roles::ftp_master include roles::dakmaster @@ -99,6 +59,7 @@ class roles { include roles::security_master include roles::dakmaster } + if has_role('security_mirror') { include roles::security_mirror } @@ -120,10 +81,6 @@ class roles { ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, } } - if has_role('keyring') { - include roles::keyring - } - if has_role('wiki') { include roles::wiki } @@ -132,20 +89,6 @@ class roles { include roles::syncproxy } - if has_role('static_master') { - include roles::static_master - } - - if has_role('static_mirror') { - include roles::static_mirror - } elsif has_role('static_source') { - include roles::static_source - } - - if has_role('weblog_provider') { - include roles::weblog_provider - } - if has_role('mailrelay') { include roles::mailrelay } @@ -159,25 +102,17 @@ class roles { } if has_role('dns_primary') { - include named::primary + include roles::dns_primary } - if has_role('weblog_destination') { - include roles::weblog_destination - } - - if has_role('vote') { - include roles::vote + if has_role('dns_geo') { + include roles::dns_geodns } if has_role('security_tracker') { include roles::security_tracker } - if has_role('lists') { - include roles::lists - } - if has_role('rtmaster') { include roles::rtmaster } @@ -194,14 +129,6 @@ class roles { include roles::sso_rp } - if has_role('tracker') { - include roles::tracker - } - - if has_role('buildd_master') { - include roles::buildd_master - } - if has_role('piuparts') { include roles::piuparts } @@ -217,14 +144,6 @@ class roles { include roles::nm } - if has_role('rtc') { - include roles::rtc - } - - if has_role('jenkins') { - include roles::jenkins - } - if has_role('postgres_backup_server') { include postgres::backup_server } @@ -246,13 +165,22 @@ class roles { } if has_role('gobby_debian_org') { - ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], } + ssl::service { 'gobby.debian.org': + notify => [ Exec['service apache2 reload'], Exec['reload gobby'] ], + key => true, + tlsaport => [443, 6523], + } file { '/etc/ssl/debian-local/other-keys/gobby.debian.org.key': ensure => present, mode => '0440', group => 'gobby', - content => inline_template('<%= File.read("/srv/puppet.debian.org/from-letsencrypt/gobby.debian.org.key") %>'), + content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'), links => follow, + notify => Exec['reload gobby'], + } + exec { 'reload gobby': + command => 'pkill -u gobby -HUP -x infinoted', + refreshonly => true, } } @@ -270,21 +198,25 @@ class roles { include roles::dgit_git } - if $::hostname in [lw01, lw02, lw03, lw04] { + if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] { include roles::snapshot } - if has_role('veyepar.debian.org') { - ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, } + if has_role('snapshot_web') { + include roles::snapshot_web } - if has_role('sreview.debian.org') { - ssl::service { 'sreview.debian.net': notify => Exec['service apache2 reload'], key => true, } + + if has_role('snapshot_shell') { + include roles::snapshot_shell } if has_role('debtags') { include roles::debtags } + if has_role('planet_master') { + include roles::planet_master + } if has_role('planet_search') { ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, } } @@ -337,11 +269,15 @@ class roles { include bacula::storage } - if has_role('salsa.debian.org') { - include salsa - } - if $::keyring_debian_org_mirror { include roles::keyring_debian_org_mirror } + + if has_role('popcon') { + include roles::popcon + } + + if has_role('debsources') { + include roles::debsources + } }