aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-17 17:49:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-17 17:49:11 -0300
commitb93dc21e850e1914a7377378604acf9ca8a14713 (patch)
tree276f29cc770459d070deaea3d176030988188ffd /manifests
parent4e54b77b0daf99148811119ffd7842ea509ed88d (diff)
downloadpuppet-backup-b93dc21e850e1914a7377378604acf9ca8a14713.tar.gz
puppet-backup-b93dc21e850e1914a7377378604acf9ca8a14713.tar.bz2
Rsync backup log files
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 48fe185..556b0c7 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -64,6 +64,21 @@ class backup {
mode => 0755,
}
+ file { "/var/log/backup":
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 0755,
+ }
+
+ file { "/etc/logrotate.d/backup":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => "puppet://$server/modules/backup/logrotate.d/backup",
+ }
+
# rdiff-check script
file { "/usr/local/sbin/rdiff-check":
content => template('backup/rdiff-check.sh.erb'),
@@ -128,6 +143,7 @@ class backup {
keepweekly => '4',
keepmonthly => '3',
format => 'long',
+ log => "/var/log/backup/rsync-$title.$domain.log",
# [source]
include => $backup_include_encrypted,
exclude => $backup_exclude_encrypted,