]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
add buildd.debian.org
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         if getfromhash($site::nodeinfo, 'puppetmaster') {
4                 include puppetmaster
5         }
6
7         if getfromhash($site::nodeinfo, 'muninmaster') {
8                 include munin::master
9         }
10
11         #if getfromhash($site::nodeinfo, 'nagiosmaster') {
12         #       include nagios::server
13         #}
14
15         if getfromhash($site::nodeinfo, 'buildd') {
16                 include buildd
17                 ssl::service { 'buildd.debian.org':
18                         notify => Service['apache2'],
19                 }
20         }
21
22         if getfromhash($site::nodeinfo, 'porterbox') {
23                 include porterbox
24         }
25
26         if getfromhash($site::nodeinfo, 'bugs_mirror') {
27                 include roles::bugs_mirror
28         }
29
30         if getfromhash($site::nodeinfo, 'ftp_master') {
31                 include roles::ftp_master
32                 include roles::dakmaster
33         }
34
35         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
36                 include roles::security_mirror
37         }
38
39         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
40                 include roles::www_mirror
41         }
42
43         if getfromhash($site::nodeinfo, 'ftp.d.o') {
44                 include roles::ftp
45         }
46
47         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
48                 include roles::ftp_upload
49         }
50
51         if getfromhash($site::nodeinfo, 'security_master') {
52                 include roles::security_master
53                 include roles::dakmaster
54         }
55
56         if getfromhash($site::nodeinfo, 'www_master') {
57                 include roles::www_master
58         }
59
60         if getfromhash($site::nodeinfo, 'keyring') {
61                 include roles::keyring
62         }
63
64         if getfromhash($site::nodeinfo, 'wiki') {
65                 include roles::wiki
66         }
67
68         if getfromhash($site::nodeinfo, 'syncproxy') {
69                 include roles::syncproxy
70         }
71
72         if getfromhash($site::nodeinfo, 'static_master') {
73                 include roles::static_master
74         }
75
76         if getfromhash($site::nodeinfo, 'static_mirror') {
77                 include roles::static_mirror
78         } elsif getfromhash($site::nodeinfo, 'static_source') {
79                 include roles::static_source
80         }
81
82         if getfromhash($site::nodeinfo, 'weblog_provider') {
83                 include roles::weblog_provider
84         }
85
86         if getfromhash($site::nodeinfo, 'mailrelay') {
87                 include roles::mailrelay
88         }
89
90         if getfromhash($site::nodeinfo, 'pubsub') {
91                 include roles::pubsub
92         }
93
94         if $::hostname in [ravel] {
95                 include roles::weblog_destination
96         }
97
98         if $::hostname in [soler] {
99                 ssl::service { 'security-tracker.debian.org':
100                         notify => Service['apache2'],
101                 }
102         }
103
104         if $::hostname in [bendel] {
105                 ssl::service { 'lists.debian.org':
106                         notify => Service['apache2'],
107                 }
108         }
109
110         if $::hostname in [ullmann] {
111                 ssl::service { 'udd.debian.org':
112                         notify => Service['apache2'],
113                 }
114         }
115
116         if $::hostname in [pejacevic] {
117                 ssl::service { 'piuparts.debian.org':
118                         notify => Service['apache2'],
119                 }
120         }
121
122         if $::hostname in [nono] {
123                 ssl::service { 'nm.debian.org':
124                         notify => Service['apache2'],
125                 }
126                 ssl::service { 'contributors.debian.org':
127                         notify => Service['apache2'],
128                 }
129         }
130 }