try an rsync class
[mirror/dsa-puppet.git] / modules / roles / manifests / ftp_upload.pp
1 class roles::ftp_upload {
2
3         $bind = $::hostname ? {
4                 kassia  => '::ffff:130.89.149.224',
5                 default => '',
6         }
7
8         $bind6 = $::hostname ? {
9                 kassia  => '2001:610:1908:a000:21b:78ff:fe75:3d46',
10                 default => '',
11         }
12
13         vsftpd::site { 'ftp-upload':
14                 banner     => 'ftp.upload.debian.org FTP server',
15                 logfile    => '/var/log/ftp/vsftpd-ftp.upload.debian.org.log',
16                 writable   => true,
17                 chown_user => dak,
18                 bind       => $bind,
19                 root       => '/srv/upload.debian.org/ftp',
20         }
21
22         if $bind6 {
23                 vsftpd::site { 'ftp-upload-v6':
24                         banner     => 'ftp.upload.debian.org FTP server',
25                         logfile    => '/var/log/ftp/vsftpd-ftp.upload.debian.org.log',
26                         writable   => true,
27                         chown_user => dak,
28                         bind       => $bind6,
29                         root       => '/srv/upload.debian.org/ftp',
30                 }
31         }
32 }