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