Signed-off-by: Stephen Gran <steve@lobefin.net>
--- /dev/null
+/var/log/ftp/*log
+{
+ create 640 root adm
+
+ # ftpd doesn't handle SIGHUP properly
+ missingok
+ notifempty
+ rotate 4
+ weekly
+}
description => 'Allow ftp access',
rule => '&SERVICE(tcp, 21)',
}
+
+ 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']
+ ]
+ }
+
}
}
file { "/etc/logrotate.d/vsftpd-${name}":
- ensure => $ensure,
- content => template('vsftpd/logrotate.erb')
+ ensure => absent
}
# We don't need a firewall rule because it's added in vsftp.pp
+++ /dev/null
-<%= scope.lookupvar('logfile') %>
-{
- create 640 root adm
-
- # ftpd doesn't handle SIGHUP properly
- missingok
- notifempty
- rotate 4
- weekly
-}