X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fftp.pp;h=452c4597c4a1bfa53a782138c8a6023fabca7406;hb=71a60ee9dcabd1eee84c55092fac7826e4142459;hp=41eecf084acd9d4ae06ae073fa7ab6623f5eec68;hpb=2ba2c246ba430d33f9cd92a47ee33cd919e9d47e;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/ftp.pp b/modules/roles/manifests/ftp.pp index 41eecf084..452c4597c 100644 --- a/modules/roles/manifests/ftp.pp +++ b/modules/roles/manifests/ftp.pp @@ -1,26 +1,16 @@ class roles::ftp { + # this is the FTP part of the roles::debian_mirror class - $bind = $::hostname ? { - kassia => '::ffff:130.89.149.226', - klecker => '::ffff:130.89.148.12', - default => '', - } - - $bind6 = $::hostname ? { - kassia => '2001:610:1908:a000::149:226', - 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': - source => 'puppet:///modules/roles/ftp/vsftpd.conf', - bind => $bind, - } - - if $bind6 { - vsftpd::site { 'ftp-v6': - source => 'puppet:///modules/roles/security_mirror/vsftpd.conf', - bind => $bind6, - } + banner => 'ftp.debian.org FTP server', + logfile => '/var/log/ftp/vsftpd-ftp.debian.org.log', + binds => $binds, + max_clients => 200, + root => '/srv/ftp.debian.org/ftp.root', } }