security_master -> hiera role
[mirror/dsa-puppet.git] / modules / roles / manifests / security_master.pp
1 class roles::security_master {
2   include roles::dakmaster
3
4   ssl::service { 'security-master.debian.org':
5     notify   => Exec['service apache2 reload'],
6     key      => true,
7     tlsaport => [443, 1873],
8   }
9
10   rsync::site { 'security_master':
11     source      => 'puppet:///modules/roles/security_master/rsyncd.conf',
12     # Needs to be at least twice the number of direct mirrors (currently 15) plus some spare
13     max_clients => 50,
14     sslname     => 'security-master.debian.org',
15   }
16
17   # export ssh allow rules for hosts that we should be able to access
18   @@ferm::rule::simple { "dsa-ssh-from-security_master-${::fqdn}":
19     tag         => 'ssh::server::from::security_master',
20     description => 'Allow ssh access from security_master',
21     port        => '22',
22     saddr       => $base::public_addresses,
23   }
24 }