]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/ftp.pp
we probably want to logrotate these files
[dsa-puppet.git] / modules / roles / manifests / ftp.pp
1 class roles::ftp {
2
3         $bind = $::hostname ? {
4                 kassia  => '::ffff:130.89.149.226',
5                 klecker => '::ffff:130.89.148.12',
6                 default => '',
7         }
8
9         $bind6 = $::hostname ? {
10                 kassia  => '2001:610:1908:a000::149:226',
11                 klecker => '2001:610:1908:b000::148:12',
12                 default => '',
13         }
14
15         vsftpd::site { 'ftp':
16                 source  => 'puppet:///modules/roles/ftp/vsftpd.conf',
17                 logfile => '/var/log/ftp/vsftpd-ftp.debian.org.log',
18                 bind    => $bind,
19         }
20
21         if $bind6 {
22                 vsftpd::site { 'ftp-v6':
23                         source  => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
24                         logfile => '/var/log/ftp/vsftpd-ftp.debian.org.log',
25                         bind    => $bind6,
26                 }
27         }
28 }