]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
stop hardcoding hosts
[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, 'ftp_master') {
20                 include roles::dakmaster
21         }
22
23         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
24                 include roles::security_mirror
25         }
26
27         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
28                 include roles::www_mirror
29         }
30
31         if getfromhash($site::nodeinfo, 'apache2_backports_mirror') {
32                 include roles::backports_mirror
33         }
34
35         if getfromhash($site::nodeinfo, 'ftp.d.o') {
36                 include roles::ftp
37         }
38
39         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
40                 include roles::ftp_upload
41         }
42
43         if getfromhash($site::nodeinfo, 'backports_master') {
44                 include roles::backports_master
45                 include roles::dakmaster
46         }
47
48         if getfromhash($site::nodeinfo, 'security_master') {
49                 include roles::security_master
50                 include roles::dakmaster
51         }
52
53         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
54                 include roles::ftp-upcoming_mirror
55         }
56 }