logrotate was overcomplicated
[mirror/dsa-puppet.git] / modules / vsftpd / manifests / init.pp
index 2e099d7..531594f 100644 (file)
@@ -28,4 +28,17 @@ class vsftpd {
                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']
+               ]
+       }
+
 }