Merge remote-tracking branch 'waldi/srv-mirrors'
[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 roles::archvsync_base
5         include ferm::ftp_conntrack
6
7         $bind = $::hostname ? {
8                 klecker => '::ffff:130.89.148.12',
9                 default => '',
10         }
11
12         $bind6 = $::hostname ? {
13                 klecker => '2001:610:1908:b000::148:12',
14                 default => '',
15         }
16
17         vsftpd::site { 'ftp':
18                 banner       => 'ftp.debian.org FTP server',
19                 logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
20                 bind         => $bind,
21                 max_clients  => 200,
22                 root         => '/srv/ftp.debian.org/ftp.root',
23         }
24
25         if $bind6 {
26                 vsftpd::site { 'ftp-v6':
27                         banner       => 'ftp.debian.org FTP server',
28                         logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
29                         bind         => $bind6,
30                         max_clients  => 200,
31                         root         => '/srv/ftp.debian.org/ftp.root',
32                 }
33         }
34 }