remove historical_mirror has_role call for inclusion; no longer needed
[mirror/dsa-puppet.git] / modules / roles / manifests / init.pp
1 # = Class: roles
2 #
3 # Lookup role and include relevant classes for roles
4 #
5 # == Sample Usage:
6 #
7 #   include roles
8 #
9 class roles {
10         if has_role('muninmaster') {
11                 include munin::master
12         }
13
14         if has_role('nagiosmaster') {
15                 include nagios::server
16         }
17
18         # debug archive
19         if has_role('debug_mirror') {
20                 include roles::debug_mirror
21         }
22
23         # ftp.debian.org and its ecosystem
24         if has_role('debian_mirror') {
25                 include roles::debian_mirror
26         }
27
28         if has_role('security_mirror') {
29                 include roles::security_mirror
30         }
31
32         if has_role('postgres_backup_server') {
33                 include postgres::backup_server
34         }
35
36         if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
37                 include roles::snapshot
38         }
39
40         if has_role('bgp') {
41                 include roles::bgp
42         }
43
44         if has_role('postgresql_server') {
45                 include postgres::backup_source
46         }
47
48         if $::keyring_debian_org_mirror {
49                 include roles::keyring_debian_org_mirror
50         }
51 }