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