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