12 require => Package['vsftpd']
15 file { '/etc/vsftpd.conf':
16 content => "listen=NO\n",
17 require => Package['vsftpd'],
18 notify => Service['vsftpd']
21 # Mask the vsftpd service as we are using xinetd
22 file { '/etc/systemd/system/vsftpd.service':
24 target => '/dev/null',
25 notify => Exec['systemctl daemon-reload'],
28 # Ensure the empty dir is present, workaround for #789127
29 file { '/etc/tmpfiles.d/vsftpd.conf':
30 content => 'd /var/run/vsftpd/empty 0755 root root -',
31 notify => Exec['systemd-tmpfiles --create --exclude-prefix=/dev'],
34 munin::check { 'vsftpd':
37 munin::check { 'ps_vsftpd':
41 @ferm::rule { 'dsa-ftp':
43 description => 'Allow ftp access',
44 rule => '&SERVICE(tcp, 21)',
47 file { '/var/log/ftp':
51 file { '/etc/logrotate.d/vsftpd':
52 source => 'puppet:///modules/vsftpd/logrotate.conf',