X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvsftpd%2Fmanifests%2Finit.pp;h=9806604f525977aa232f1f7ad2924c63074499b1;hb=34cff2e3729a4d646271fe85c4b3f0dcd91e3cd1;hp=7f0be8fc83455f9557916d254c3c18bb47959cd5;hpb=616f373b4a73d0c77f161c268c46751e8bdefae2;p=mirror%2Fdsa-puppet.git diff --git a/modules/vsftpd/manifests/init.pp b/modules/vsftpd/manifests/init.pp index 7f0be8fc8..9806604f5 100644 --- a/modules/vsftpd/manifests/init.pp +++ b/modules/vsftpd/manifests/init.pp @@ -18,6 +18,19 @@ class vsftpd { notify => Service['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 } @@ -42,5 +55,4 @@ class vsftpd { Package['debian.org'] ] } - }