X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fftp.pp;h=452c4597c4a1bfa53a782138c8a6023fabca7406;hb=12332fbd95be46e7d6ca5dc584ea8be270a01324;hp=294cea36d12ec2ef8928bd70ab005ed36c318eb9;hpb=ce2faa5e2cedf0a43ecd8c01efc958fe8d2b363f;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/ftp.pp b/modules/roles/manifests/ftp.pp index 294cea36d..452c4597c 100644 --- a/modules/roles/manifests/ftp.pp +++ b/modules/roles/manifests/ftp.pp @@ -1,22 +1,16 @@ class roles::ftp { + # this is the FTP part of the roles::debian_mirror class - $bind = $::hostname ? { - default => '', - } - - $bind6 = $::hostname ? { - 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 { 'security-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', } }