Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 828fb1977adef625d03743241938a6201a81858e @rodjek committed Mar 1, 2012
Showing with 40 additions and 0 deletions.
  1. +6 −0 files/etc/cron.daily/logrotate
  2. +9 −0 files/etc/logrotate.conf
  3. +25 −0 manifests/base.pp
  4. 0 manifests/init.pp
@@ -0,0 +1,6 @@
+#!/bin/sh
+# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE
+# OVERWRITTEN.
+
+test -x /usr/sbin/logrotate || exit 0
+/usr/sbin/logrotate /etc/logrotate.conf
@@ -0,0 +1,9 @@
+# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE
+# OVERWRITTEN.
+
+# Default values
+weekly
+rotate 4
+create
+
+include /etc/logrotate.d
@@ -0,0 +1,25 @@
+class logrotate::base {
+ package { 'logrotate':
+ ensure => latest,
+ }
+
+ File {
+ owner => 'root',
+ group => 'root',
+ require => Package['logrotate'],
+ }
+
+ file {
+ '/etc/logrotate.conf':
+ ensure => file,
+ mode => '0444',
+ source => 'puppet:///modules/logrotate/etc/logrotate.conf';
+ '/etc/logrotate.d':
+ ensure => directory,
+ mode => '0755';
+ '/etc/cron.daily/logrotate':
+ ensure => file,
+ mode => '0555',
+ source => 'puppet:///modules/logrotate/etc/cron.daily/logrotate';
+ }
+}
No changes.

0 comments on commit 828fb19

Please sign in to comment.