2324e571460dbe95ae2f9ae5ff913310845e53cb
[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         if has_role('security_mirror') {
15                 include roles::security_mirror
16         }
17
18         if has_role('postgres_backup_server') {
19                 include postgres::backup_server
20         }
21
22         if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
23                 include roles::snapshot
24         }
25
26         if has_role('bgp') {
27                 include roles::bgp
28         }
29
30         if has_role('postgresql_server') {
31                 include postgres::backup_source
32         }
33
34         if $::keyring_debian_org_mirror {
35                 include roles::keyring_debian_org_mirror
36         }
37 }