]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
push the cert to bugs
[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
38         if has_role('ftp_master') {
39                 include roles::ftp_master
40                 include roles::dakmaster
41         }
42
43         # XXX: turn this into a real role
44         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
45                 include roles::security_mirror
46         }
47
48         # XXX: turn this into a real role
49         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
50                 include roles::www_mirror
51         }
52
53         if has_role('ftp.d.o') {
54                 include roles::ftp
55         }
56
57         if has_role('ftp.upload.d.o') {
58                 include roles::ftp_upload
59         }
60
61         if has_role('security_master') {
62                 include roles::security_master
63                 include roles::dakmaster
64         }
65
66         if has_role('www_master') {
67                 include roles::www_master
68         }
69
70         if has_role('keyring') {
71                 include roles::keyring
72         }
73
74         if has_role('wiki') {
75                 include roles::wiki
76         }
77
78         if has_role('syncproxy') {
79                 include roles::syncproxy
80         }
81
82         if has_role('static_master') {
83                 include roles::static_master
84         }
85
86         if has_role('static_mirror') {
87                 include roles::static_mirror
88         } elsif has_role('static_source') {
89                 include roles::static_source
90         }
91
92         if has_role('weblog_provider') {
93                 include roles::weblog_provider
94         }
95
96         if has_role('mailrelay') {
97                 include roles::mailrelay
98         }
99
100         if has_role('pubsub') {
101                 include roles::pubsub
102         }
103
104         if has_role('dbmaster') {
105                 include roles::dbmaster
106         }
107
108         if has_role('dns_primary') {
109                 include named::primary
110         }
111         if has_role('dns_secondary') {
112                 include named::authoritative
113         }
114
115         if has_role('weblog_destination') {
116                 include roles::weblog_destination
117         }
118
119         if has_role('vote') {
120                 include roles::vote
121         }
122
123         if has_role('security_tracker') {
124                 include roles::security_tracker
125         }
126
127         if has_role('lists') {
128                 include roles::lists
129         }
130
131         if has_role('rtmaster') {
132                 include roles::rtmaster
133         }
134
135         if has_role('udd') {
136                 include roles::udd
137         }
138
139         if has_role('sso') {
140                 include roles::sso
141         }
142
143         if has_role('buildd_master') {
144                 include roles::buildd_master
145         }
146
147         if has_role('piuparts') {
148                 include roles::piuparts
149         }
150
151         if has_role('contributors') {
152                 include roles::contributors
153         }
154
155         if has_role('nm') {
156                 include roles::nm
157         }
158
159         if has_role('release') {
160                 include roles::release
161         }
162 }