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