default: { fail ( "Invald ensure `$ensure' for $name" ) }
}
+ $ftpsite = $name
+
$fname = "/etc/vsftpd-${name}.conf"
file { $fname:
}
file { "/etc/logrotate.d/vsftpd-${name}":
- ensure => $ensure,
- content => template('vsftpd/logrotate.erb')
+ 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
require => File[$fname]
}
+ # 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'],
+ }
+
Service['vsftpd']->Service['xinetd']
}