X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvsftpd%2Fmanifests%2Finit.pp;h=9806604f525977aa232f1f7ad2924c63074499b1;hb=34cff2e3729a4d646271fe85c4b3f0dcd91e3cd1;hp=11755b49d9c1fb6134877b35a63f4470d29ececd;hpb=bab69eec93add744d1aef693eb8055e358dc8e66;p=mirror%2Fdsa-puppet.git diff --git a/modules/vsftpd/manifests/init.pp b/modules/vsftpd/manifests/init.pp index 11755b49d..9806604f5 100644 --- a/modules/vsftpd/manifests/init.pp +++ b/modules/vsftpd/manifests/init.pp @@ -18,7 +18,22 @@ class vsftpd { notify => Service['vsftpd'] } - munin::check { 'vsftpd': } + # Mask the vsftpd service as we are using xinetd + file { '/etc/systemd/system/vsftpd.service': + ensure => 'link', + target => '/dev/null', + notify => Exec['systemctl daemon-reload'], + } + + # Ensure the empty dir is present, workaround for #789127 + file { '/etc/tmpfiles.d/vsftpd.conf': + content => 'd /var/run/vsftpd/empty 0755 root root -', + notify => Exec['systemd-tmpfiles --create --exclude-prefix=/dev'], + } + + munin::check { 'vsftpd': + ensure => absent + } munin::check { 'ps_vsftpd': script => 'ps_' } @@ -40,5 +55,4 @@ class vsftpd { Package['debian.org'] ] } - }