]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
Revert "Revert "now make it go away""
[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         } else {
18                 class { 'buildd':
19                         ensure => absent
20                 }
21         }
22
23         if getfromhash($site::nodeinfo, 'bugs_mirror') {
24                 include roles::bugs_mirror
25         }
26
27         if getfromhash($site::nodeinfo, 'ftp_master') {
28                 include roles::ftp_master
29                 include roles::dakmaster
30         }
31
32         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
33                 include roles::security_mirror
34         }
35
36         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
37                 include roles::www_mirror
38         }
39
40         if getfromhash($site::nodeinfo, 'apache2_backports_mirror') {
41                 include roles::backports_mirror
42         }
43
44         if getfromhash($site::nodeinfo, 'ftp.d.o') {
45                 include roles::ftp
46         }
47
48         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
49                 include roles::ftp_upload
50         }
51
52         if getfromhash($site::nodeinfo, 'backports_master') {
53                 include roles::backports_master
54                 include roles::dakmaster
55         }
56
57         if getfromhash($site::nodeinfo, 'security_master') {
58                 include roles::security_master
59                 include roles::dakmaster
60         }
61
62         if getfromhash($site::nodeinfo, 'www_master') {
63                 include roles::www_master
64         }
65
66         if getfromhash($site::nodeinfo, 'keyring') {
67                 include roles::keyring
68         }
69
70         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
71                 include roles::ftp-upcoming_mirror
72         }
73
74         if getfromhash($site::nodeinfo, 'static_master') {
75                 include roles::static_master
76         }
77
78         if getfromhash($site::nodeinfo, 'static_mirror') {
79                 include roles::static_mirror
80         } elsif getfromhash($site::nodeinfo, 'static_source') {
81                 include roles::static_source
82         }
83 }