X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvsftpd%2Fmanifests%2Fsite.pp;h=f8a71a0fb52d9aa297949593bf0df5af0efb635a;hb=3c85d7d69fa36e8f8229008b8e899c2cf15f08aa;hp=077cb43103979bb4330f8c129bb136497eec0620;hpb=a691c72453f8511a9711e63059aa2991ad0459d6;p=mirror%2Fdsa-puppet.git diff --git a/modules/vsftpd/manifests/site.pp b/modules/vsftpd/manifests/site.pp index 077cb4310..f8a71a0fb 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: @@ -27,6 +29,13 @@ define vsftpd::site ( 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 xinetd::service { "vsftpd-${name}": bind => $bind,