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