]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
Deploy bugs-master cert
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         if has_role('puppetmaster') {
4                 include puppetmaster
5         }
6
7         if has_role('muninmaster') {
8                 include munin::master
9         }
10
11         if has_role('nagiosmaster') {
12         #       include nagios::server
13                 ssl::service { 'nagios.debian.org':
14                         notify => Service['apache2'],
15                 }
16         }
17
18         # XXX: turn this into a real role
19         if getfromhash($site::nodeinfo, 'buildd') {
20                 include buildd
21         }
22
23         # XXX: turn this into a real role
24         if getfromhash($site::nodeinfo, 'porterbox') {
25                 include porterbox
26         }
27
28         if has_role('bugs_mirror') {
29                 include roles::bugs_mirror
30         }
31
32         if has_role('bugs_base') {
33                 ssl::service { 'bugs.debian.org':
34                         notify => Service['apache2'],
35                 }
36         }
37         if has_role('bugs_master') {
38                 ssl::service { 'bugs-master.debian.org':
39                         notify => Service['apache2'],
40                 }
41         }
42
43         if has_role('ftp_master') {
44                 include roles::ftp_master
45                 include roles::dakmaster
46         }
47
48         # XXX: turn this into a real role
49         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
50                 include roles::security_mirror
51         }
52
53         # XXX: turn this into a real role
54         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
55                 include roles::www_mirror
56         }
57
58         if has_role('ftp.d.o') {
59                 include roles::ftp
60         }
61
62         if has_role('ftp.upload.d.o') {
63                 include roles::ftp_upload
64         }
65
66         if has_role('security_master') {
67                 include roles::security_master
68                 include roles::dakmaster
69         }
70
71         if has_role('www_master') {
72                 include roles::www_master
73         }
74
75         if has_role('keyring') {
76                 include roles::keyring
77         }
78
79         if has_role('wiki') {
80                 include roles::wiki
81         }
82
83         if has_role('syncproxy') {
84                 include roles::syncproxy
85         }
86
87         if has_role('static_master') {
88                 include roles::static_master
89         }
90
91         if has_role('static_mirror') {
92                 include roles::static_mirror
93         } elsif has_role('static_source') {
94                 include roles::static_source
95         }
96
97         if has_role('weblog_provider') {
98                 include roles::weblog_provider
99         }
100
101         if has_role('mailrelay') {
102                 include roles::mailrelay
103         }
104
105         if has_role('pubsub') {
106                 include roles::pubsub
107         }
108
109         if has_role('dbmaster') {
110                 include roles::dbmaster
111         }
112
113         if has_role('dns_primary') {
114                 include named::primary
115         }
116         if has_role('dns_secondary') {
117                 include named::authoritative
118         }
119
120         if has_role('weblog_destination') {
121                 include roles::weblog_destination
122         }
123
124         if has_role('vote') {
125                 include roles::vote
126         }
127
128         if has_role('security_tracker') {
129                 include roles::security_tracker
130         }
131
132         if has_role('lists') {
133                 include roles::lists
134         }
135
136         if has_role('rtmaster') {
137                 include roles::rtmaster
138         }
139
140         if has_role('udd') {
141                 include roles::udd
142         }
143
144         if has_role('sso') {
145                 include roles::sso
146         }
147
148         if has_role('buildd_master') {
149                 include roles::buildd_master
150         }
151
152         if has_role('piuparts') {
153                 include roles::piuparts
154         }
155
156         if has_role('contributors') {
157                 include roles::contributors
158         }
159
160         if has_role('nm') {
161                 include roles::nm
162         }
163
164         if has_role('release') {
165                 include roles::release
166         }
167
168         if has_role('rtc') {
169                 include roles::rtc
170         }
171
172         if has_role('postgres_backup_server') {
173                 include postgres::backup_server
174         }
175
176         if has_role('packages') {
177                 ssl::service { 'packages.debian.org':
178                         notify => Service['apache2'],
179                 }
180         }
181 }