X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fftp.pp;h=452c4597c4a1bfa53a782138c8a6023fabca7406;hb=71a60ee9dcabd1eee84c55092fac7826e4142459;hp=a7870cb289993196a9b2fa9a1ac0eb2b306ca98c;hpb=9fcfecbfcca2dcf3f446d3b6fe989f40143392f4;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/ftp.pp b/modules/roles/manifests/ftp.pp index a7870cb28..452c4597c 100644 --- a/modules/roles/manifests/ftp.pp +++ b/modules/roles/manifests/ftp.pp @@ -1,34 +1,16 @@ class roles::ftp { # this is the FTP part of the roles::debian_mirror class - include roles::archvsync_base - include ferm::ftp_conntrack - - $bind = $::hostname ? { - klecker => '::ffff:130.89.148.12', - default => '', - } - - $bind6 = $::hostname ? { - klecker => '2001:610:1908:b000::148:12', - default => '', + $binds = $::hostname ? { + klecker => [ '130.89.148.12', '[2001:610:1908:b000::148:12]' ], + default => [ '[::]' ], } vsftpd::site { 'ftp': banner => 'ftp.debian.org FTP server', logfile => '/var/log/ftp/vsftpd-ftp.debian.org.log', - bind => $bind, + binds => $binds, max_clients => 200, root => '/srv/ftp.debian.org/ftp.root', } - - if $bind6 { - vsftpd::site { 'ftp-v6': - banner => 'ftp.debian.org FTP server', - logfile => '/var/log/ftp/vsftpd-ftp.debian.org.log', - bind => $bind6, - max_clients => 200, - root => '/srv/ftp.debian.org/ftp.root', - } - } }