]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/ftp.pp
roll out to klecker
[dsa-puppet.git] / modules / roles / manifests / ftp.pp
1 class roles::ftp {
2
3         $bind = $::hostname ? {
4                 klecker => '::ffff:130.89.148.12',
5                 default => '',
6         }
7
8         $bind6 = $::hostname ? {
9                 klecker => '2001:610:1908:b000::148:12',
10                 default => '',
11         }
12
13         vsftpd::site { 'ftp':
14                 source => 'puppet:///modules/roles/ftp/vsftpd.conf',
15                 bind   => $bind,
16         }
17
18         if $bind6 {
19                 vsftpd::site { 'security-v6':
20                         source => 'puppet:///modules/roles/security_mirror/vsftpd.conf',
21                         bind   => $bind6,
22                 }
23         }
24 }