X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvsftpd%2Fmanifests%2Finit.pp;h=45d5ddcff71903129646ac22f89fd2e00abd24aa;hb=d8e7039e56190564d5080b85d48fe0f6a5b4624f;hp=2e099d79af66475a287eabd2e1b7f61d200fd172;hpb=fc12446d1c57ce8ffc3546f9a58c8e6f9cca404a;p=mirror%2Fdsa-puppet.git diff --git a/modules/vsftpd/manifests/init.pp b/modules/vsftpd/manifests/init.pp index 2e099d79a..45d5ddcff 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_' } @@ -28,4 +43,20 @@ class vsftpd { description => 'Allow ftp access', rule => '&SERVICE(tcp, 21)', } + + file { '/srv/ftp': + ensure => directory, + mode => '0755' + } + file { '/var/log/ftp': + ensure => directory, + mode => '0755' + } + file { '/etc/logrotate.d/vsftpd': + source => 'puppet:///modules/vsftpd/logrotate.conf', + require => [ + Package['vsftpd'], + Package['debian.org'] + ] + } }