diff options
author | Micah Anderson <micah@leap.se> | 2013-08-28 10:07:02 -0400 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2013-08-28 10:07:02 -0400 |
commit | 6e0c0e5617d2c55457be25fae5ad2e3898936a51 (patch) | |
tree | 2da9ce489e6494dec9c1b1a1556adb8ca972ef1f /puppet/modules/site_couchdb | |
parent | 6a1ed392b4528f07d19c5cced68909db2a1825d9 (diff) | |
parent | 778e85c3a163b6343cd545073e4432b882dc888a (diff) |
Merge branch 'bug/3491' into develop
Diffstat (limited to 'puppet/modules/site_couchdb')
-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' ] + } + +} |