]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
disable nagios-master via puppet config push
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         if getfromhash($site::nodeinfo, 'puppetmaster') {
4                 include puppetmaster
5         }
6
7         if getfromhash($site::nodeinfo, 'muninmaster') {
8                 include munin::master
9         }
10
11         #if getfromhash($site::nodeinfo, 'nagiosmaster') {
12         #       include nagios::server
13         #}
14
15         if getfromhash($site::nodeinfo, 'buildd') {
16                 include buildd
17         }
18
19         if getfromhash($site::nodeinfo, 'bugs_mirror') {
20                 include roles::bugs_mirror
21         }
22
23         if getfromhash($site::nodeinfo, 'ftp_master') {
24                 include roles::ftp_master
25                 include roles::dakmaster
26         }
27
28         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
29                 include roles::security_mirror
30         }
31
32         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
33                 include roles::www_mirror
34         }
35
36         if getfromhash($site::nodeinfo, 'apache2_backports_mirror') {
37                 include roles::backports_mirror
38         }
39
40         if getfromhash($site::nodeinfo, 'ftp.d.o') {
41                 include roles::ftp
42         }
43
44         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
45                 include roles::ftp_upload
46         }
47
48         if getfromhash($site::nodeinfo, 'backports_master') {
49                 include roles::backports_master
50                 include roles::dakmaster
51         }
52
53         if getfromhash($site::nodeinfo, 'security_master') {
54                 include roles::security_master
55                 include roles::dakmaster
56         }
57
58         if getfromhash($site::nodeinfo, 'www_master') {
59                 include roles::www_master
60         }
61
62         if getfromhash($site::nodeinfo, 'keyring') {
63                 include roles::keyring
64         }
65
66         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
67                 include roles::ftp-upcoming_mirror
68         }
69
70         if getfromhash($site::nodeinfo, 'static_master') {
71                 include roles::static_master
72         }
73
74         if getfromhash($site::nodeinfo, 'static_mirror') {
75                 include roles::static_mirror
76         } elsif getfromhash($site::nodeinfo, 'static_source') {
77                 include roles::static_source
78         }
79 }