diff options
author | varac <varacanero@zeromail.org> | 2014-03-13 21:23:57 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-03-13 21:23:57 +0100 |
commit | cb003cfff3002e111eced280b5a664c327a4ab11 (patch) | |
tree | 14b3ea5dd118079851979ee4be4b91a4d6f07bae /puppet | |
parent | 41fcf91e43027f32faa97309616d20699ba0ebd4 (diff) |
deploy automatic compaction via platform (Feature #4798)
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/bigcouch/compaction.pp | 8 | ||||
-rw-r--r-- | puppet/modules/site_couchdb/manifests/init.pp | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/manifests/bigcouch/compaction.pp b/puppet/modules/site_couchdb/manifests/bigcouch/compaction.pp new file mode 100644 index 00000000..84aab4ef --- /dev/null +++ b/puppet/modules/site_couchdb/manifests/bigcouch/compaction.pp @@ -0,0 +1,8 @@ +class site_couchdb::bigcouch::compaction { + cron { + 'compact_all_shards': + command => '/srv/leap/couchdb/scripts/bigcouch_compact_all_shards.sh >> /var/log/bigcouch/compaction.log', + hour => 3, + minute => 17; + } +} diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp index e4c0211b..c67ce8c8 100644 --- a/puppet/modules/site_couchdb/manifests/init.pp +++ b/puppet/modules/site_couchdb/manifests/init.pp @@ -94,6 +94,7 @@ class site_couchdb { include site_couchdb::add_users include site_couchdb::designs include site_couchdb::logrotate + include site_couchdb::bigcouch::compaction include site_shorewall::couchdb include site_shorewall::couchdb::bigcouch @@ -110,4 +111,9 @@ class site_couchdb { include site_check_mk::agent::couchdb include site_check_mk::agent::tapicero + + file { '/var/log/bigcouch': + ensure => directory + } + } |