bgp -> hiera role
[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('postgresql_server') {
27                 include postgres::backup_source
28         }
29
30         if $::keyring_debian_org_mirror {
31                 include roles::keyring_debian_org_mirror
32         }
33 }