diff options
author | elijah <elijah@riseup.net> | 2015-03-30 22:33:05 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-03-30 22:33:05 -0700 |
commit | b64940c1de7cf42acef018ca2fbf5beff4f48e80 (patch) | |
tree | 13925f4c050d55c413e15307e48cdb803caa5945 /puppet/modules/site_couchdb | |
parent | 3172444652af71bd771609d6b80258e70cc82ce9 (diff) |
added support for rotating couchdb databases.
Diffstat (limited to 'puppet/modules/site_couchdb')
l--------- | puppet/modules/site_couchdb/files/designs/tmp_users/User.json | 1 | ||||
-rw-r--r-- | puppet/modules/site_couchdb/manifests/create_dbs.pp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/files/designs/tmp_users/User.json b/puppet/modules/site_couchdb/files/designs/tmp_users/User.json new file mode 120000 index 00000000..ed3d0af9 --- /dev/null +++ b/puppet/modules/site_couchdb/files/designs/tmp_users/User.json @@ -0,0 +1 @@ +../users/User.json
\ No newline at end of file diff --git a/puppet/modules/site_couchdb/manifests/create_dbs.pp b/puppet/modules/site_couchdb/manifests/create_dbs.pp index 40148b8e..f9a08807 100644 --- a/puppet/modules/site_couchdb/manifests/create_dbs.pp +++ b/puppet/modules/site_couchdb/manifests/create_dbs.pp @@ -64,6 +64,13 @@ class site_couchdb::create_dbs { require => Couchdb::Query::Setup['localhost'] } + ## tmp_users database + ## r/w: webapp + couchdb::create_db { 'tmp_users': + members => "{ \"names\": [], \"roles\": [\"replication\", \"users\"] }", + require => Couchdb::Query::Setup['localhost'] + } + ## messages db ## store messages to the clients such as payment reminders ## r/w: webapp |