X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvsftpd%2Fmanifests%2Fsite.pp;h=63f9ed67b5c1ad1b11d4acd912c220a6ba26b787;hb=2aaa94966b42ca960bb421c2da32006dc69f5e69;hp=fc941f3b3a8d97d390d6ff0ac9061742a7c4fe5d;hpb=fc12446d1c57ce8ffc3546f9a58c8e6f9cca404a;p=mirror%2Fdsa-puppet.git diff --git a/modules/vsftpd/manifests/site.pp b/modules/vsftpd/manifests/site.pp index fc941f3b3..63f9ed67b 100644 --- a/modules/vsftpd/manifests/site.pp +++ b/modules/vsftpd/manifests/site.pp @@ -16,6 +16,8 @@ define vsftpd::site ( default: { fail ( "Invald ensure `$ensure' for $name" ) } } + $ftpsite = $name + $fname = "/etc/vsftpd-${name}.conf" file { $fname: @@ -24,8 +26,14 @@ define vsftpd::site ( } file { "/etc/logrotate.d/vsftpd-${name}": - ensure => $ensure, - content => template('vsftpd/logrotate.erb') + ensure => absent + } + + munin::check { "vsftpd-${name}": + script => 'vsftpd' + } + munin::conf { "vsftpd-${name}": + content => template('vsftpd/munin.erb') } # We don't need a firewall rule because it's added in vsftp.pp @@ -33,7 +41,7 @@ define vsftpd::site ( bind => $bind, id => "${name}-ftp", server => '/usr/sbin/vsftpd', - port => 'ftp', + service => 'ftp', server_args => $fname, ferm => false, instances => $max_clients,