]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
keep transitioning to roles
[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 $::hostname in [chopin,franck,morricone,bizet] {
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 $::hostname in [bizet,morricone] {
44                 include roles::backports_master
45         }
46
47         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
48                 include roles::ftp-upcoming_mirror
49         }
50 }