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