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