muninmaster -> hiera role, new ssh store/collect, no more plain text munin fetching...
[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('nagiosmaster') {
11                 include nagios::server
12         }
13
14         # ftp.debian.org and its ecosystem
15         if has_role('debian_mirror') {
16                 include roles::debian_mirror
17         }
18
19         if has_role('security_mirror') {
20                 include roles::security_mirror
21         }
22
23         if has_role('postgres_backup_server') {
24                 include postgres::backup_server
25         }
26
27         if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
28                 include roles::snapshot
29         }
30
31         if has_role('bgp') {
32                 include roles::bgp
33         }
34
35         if has_role('postgresql_server') {
36                 include postgres::backup_source
37         }
38
39         if $::keyring_debian_org_mirror {
40                 include roles::keyring_debian_org_mirror
41         }
42 }