Use vsftpd via systemd on ftp
[mirror/dsa-puppet.git] / modules / roles / manifests / ftp.pp
1 class roles::ftp {
2         # this is the FTP part of the roles::debian_mirror class
3
4         include ferm::ftp_conntrack
5
6         $binds = $::hostname ? {
7                 klecker => [ '130.89.148.12', '[2001:610:1908:b000::148:12]' ],
8                 default => [ '[::]' ],
9         }
10
11         vsftpd::site_systemd { 'ftp':
12                 banner       => 'ftp.debian.org FTP server',
13                 logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
14                 binds        => $binds,
15                 max_clients  => 200,
16                 root         => '/srv/ftp.debian.org/ftp.root',
17         }
18 }