if we do not have specific binds, we use the empty string to signal that
[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         $bind = $::hostname ? {
7                 klecker => '::ffff:130.89.148.12',
8                 default => '',
9         }
10
11         $bind6 = $::hostname ? {
12                 klecker => '2001:610:1908:b000::148:12',
13                 default => '',
14         }
15
16         vsftpd::site { 'ftp':
17                 banner       => 'ftp.debian.org FTP server',
18                 logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
19                 bind         => $bind,
20                 max_clients  => 200,
21                 root         => '/srv/ftp.debian.org/ftp.root',
22         }
23
24         if $bind6 != '' {
25                 vsftpd::site { 'ftp-v6':
26                         banner       => 'ftp.debian.org FTP server',
27                         logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
28                         bind         => $bind6,
29                         max_clients  => 200,
30                         root         => '/srv/ftp.debian.org/ftp.root',
31                 }
32         }
33 }