]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
use weblog_provider role
[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, 'ftp.d.o') {
37                 include roles::ftp
38         }
39
40         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
41                 include roles::ftp_upload
42         }
43
44         if getfromhash($site::nodeinfo, 'security_master') {
45                 include roles::security_master
46                 include roles::dakmaster
47         }
48
49         if getfromhash($site::nodeinfo, 'www_master') {
50                 include roles::www_master
51         }
52
53         if getfromhash($site::nodeinfo, 'keyring') {
54                 include roles::keyring
55         }
56
57         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
58                 include roles::ftp-upcoming_mirror
59         }
60
61         if getfromhash($site::nodeinfo, 'static_master') {
62                 include roles::static_master
63         }
64
65         if getfromhash($site::nodeinfo, 'static_mirror') {
66                 include roles::static_mirror
67         } elsif getfromhash($site::nodeinfo, 'static_source') {
68                 include roles::static_source
69         }
70
71         if getfromhash($site::nodeinfo, 'weblog_provider') {
72                 include roles::weblog_provider
73         }
74 }