Attempt to configure an apache vhost for a static component only if it exists on...
[mirror/dsa-puppet.git] / modules / roles / manifests / ftp.pp
1 class roles::ftp {
2
3         include ferm::ftp_conntrack
4
5         $bind = $::hostname ? {
6                 klecker => '::ffff:130.89.148.12',
7                 default => '',
8         }
9
10         $bind6 = $::hostname ? {
11                 klecker => '2001:610:1908:b000::148:12',
12                 default => '',
13         }
14
15         vsftpd::site { 'ftp':
16                 banner       => 'ftp.debian.org FTP server',
17                 logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
18                 bind         => $bind,
19                 max_clients  => 200,
20                 root         => '/srv/ftp.debian.org/ftp.root',
21         }
22
23         if $bind6 {
24                 vsftpd::site { 'ftp-v6':
25                         banner       => 'ftp.debian.org FTP server',
26                         logfile      => '/var/log/ftp/vsftpd-ftp.debian.org.log',
27                         bind         => $bind6,
28                         max_clients  => 200,
29                         root         => '/srv/ftp.debian.org/ftp.root',
30                 }
31         }
32 }