diff options
author | Micah Anderson <micah@leap.se> | 2013-08-27 19:42:15 -0400 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2013-08-27 20:19:04 -0400 |
commit | 778e85c3a163b6343cd545073e4432b882dc888a (patch) | |
tree | f649c9b2e1ea377e718b699c6aae3a36a331f476 | |
parent | 14cee35e55c999663dbd8ac34197b6ce7382e35d (diff) |
setup bigcouch logrotation (#3491)
Change-Id: Ia35cf7a9fc1d0fad6a57bbae73968ab6b8f0c847
-rw-r--r-- | puppet/modules/site_couchdb/manifests/init.pp | 2 | ||||
-rw-r--r-- | puppet/modules/site_couchdb/manifests/logrotate.pp | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp index 75ed87a0..238b83d9 100644 --- a/puppet/modules/site_couchdb/manifests/init.pp +++ b/puppet/modules/site_couchdb/manifests/init.pp @@ -82,6 +82,8 @@ class site_couchdb { require => Couchdb::Query::Setup['localhost'] } + include site_couchdb::logrotate + include site_shorewall::couchdb include site_shorewall::couchdb::bigcouch } diff --git a/puppet/modules/site_couchdb/manifests/logrotate.pp b/puppet/modules/site_couchdb/manifests/logrotate.pp new file mode 100644 index 00000000..e1039d49 --- /dev/null +++ b/puppet/modules/site_couchdb/manifests/logrotate.pp @@ -0,0 +1,12 @@ +class site_couchdb::logrotate { + + augeas { + 'logrotate_bigcouch': + context => '/files/etc/logrotate.d/bigcouch/rule', + changes => [ 'set file /opt/bigcouch/var/log/*.log', 'set rotate 7', + 'set schedule daily', 'set compress compress', + 'set missingok missingok', 'set ifempty notifempty', + 'set copytruncate copytruncate' ] + } + +} |