From e0c07465d14d701da16e47b9c2e3938c80088c4d Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 19 Dec 2013 12:50:17 +0100 Subject: Deploy /etc/leap/couchdb_scripts_defaults.conf so we can exclude some DBs, i.e. sessions + tokens (#4794) --- .../modules/site_couchdb/files/couchdb_scripts_defaults.conf | 4 ++++ puppet/modules/site_couchdb/manifests/backup.pp | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 puppet/modules/site_couchdb/files/couchdb_scripts_defaults.conf (limited to 'puppet') diff --git a/puppet/modules/site_couchdb/files/couchdb_scripts_defaults.conf b/puppet/modules/site_couchdb/files/couchdb_scripts_defaults.conf new file mode 100644 index 00000000..1565e1a1 --- /dev/null +++ b/puppet/modules/site_couchdb/files/couchdb_scripts_defaults.conf @@ -0,0 +1,4 @@ +# space separated list of excluded DBs for dumping +# sourced by couchdb_dumpall.sh +EXCLUDE_DBS='sessions tokens' + diff --git a/puppet/modules/site_couchdb/manifests/backup.pp b/puppet/modules/site_couchdb/manifests/backup.pp index ef505693..8b5aa6ea 100644 --- a/puppet/modules/site_couchdb/manifests/backup.pp +++ b/puppet/modules/site_couchdb/manifests/backup.pp @@ -9,4 +9,15 @@ class site_couchdb::backup { backupninja::sh { 'couchdb_backup': command_string => "cd /srv/leap/couchdb/scripts \n./couchdb_dumpall.sh" } + + # Deploy /etc/leap/couchdb_scripts_defaults.conf so we can exclude + # some databases + + file { '/etc/leap/couchdb_scripts_defaults.conf': + source => 'puppet:///modules/site_couchdb/couchdb_scripts_defaults.conf', + mode => '0644', + owner => 'root', + group => 'root', + } + } -- cgit v1.2.3