diff options
author | elijah <elijah@riseup.net> | 2015-02-09 22:32:07 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-02-09 22:32:07 -0800 |
commit | b5901ecd915240c3e927b9b5adb52302831eb768 (patch) | |
tree | 51a2f5f32654fb9d26abeebf7ea5ae1f2f25a616 /puppet/modules | |
parent | e4e7959d5dee3b0c3e4c2daaf0355c870b97c942 (diff) | |
parent | 512cd3900b742e01a4a205d2c504741aab5fe84d (diff) |
Merge branch 'feature/logdeploy' into develop
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/site_config/manifests/default.pp | 2 | ||||
-rw-r--r-- | puppet/modules/site_config/manifests/syslog.pp | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/puppet/modules/site_config/manifests/default.pp b/puppet/modules/site_config/manifests/default.pp index a75b3c7c..aa49f930 100644 --- a/puppet/modules/site_config/manifests/default.pp +++ b/puppet/modules/site_config/manifests/default.pp @@ -35,7 +35,7 @@ class site_config::default { # configure caching, local resolver include site_config::caching_resolver - # install/configure syslog + # install/configure syslog and core log rotations include site_config::syslog # provide a basic level of quality entropy diff --git a/puppet/modules/site_config/manifests/syslog.pp b/puppet/modules/site_config/manifests/syslog.pp index 26c65f02..1b0c1e05 100644 --- a/puppet/modules/site_config/manifests/syslog.pp +++ b/puppet/modules/site_config/manifests/syslog.pp @@ -11,4 +11,13 @@ class site_config::syslog { content => '$ModLoad mmanon action(type="mmanon" ipv4.bits="32" mode="rewrite")' } + + augeas { + 'logrotate_leap_deploy': + context => '/files/etc/logrotate.d/leap_deploy/rule', + changes => [ 'set file /var/log/leap/deploy*.log', 'set rotate 7', + 'set schedule daily', 'set compress compress', + 'set missingok missingok', + 'set copytruncate copytruncate' ] + } } |