]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/ftp.pp
41eecf084acd9d4ae06ae073fa7ab6623f5eec68
[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                 bind   => $bind,
18         }
19
20         if $bind6 {
21                 vsftpd::site { 'ftp-v6':
22                         source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
23                         bind   => $bind6,
24                 }
25         }
26 }