diff options
author | Azul <azul@riseup.net> | 2013-10-22 10:26:28 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-10-22 10:41:10 +0200 |
commit | 4597cf55613aa25e77ef9943c32918fd59ff65c2 (patch) | |
tree | 6e0d225271327bd743bc85406970983fd0338a1e | |
parent | d84dfddb0dfc2e5207c90380fb1f7fcf7bc7a72d (diff) |
rename readers to members in couch setup (#4219)
couch db readers actually are couchdb members ( they can read and write ). I think couch themselves changed the termology at some point but i might just have used the wrong term from the beginning on.
Let's call them members either way because it's more clear that read only members require aditional design docs.
-rw-r--r-- | manifests/create_db.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp index edc6f0d..8a8d114 100644 --- a/manifests/create_db.pp +++ b/manifests/create_db.pp @@ -1,7 +1,7 @@ define couchdb::create_db ( $host='127.0.0.1:5984', $admins="{\"names\": [], \"roles\": [] }", - $readers="{\"names\": [], \"roles\": [] }" ) + $members="{\"names\": [], \"roles\": [] }" ) { couchdb::query { "create_db_${name}": @@ -15,7 +15,7 @@ define couchdb::create_db ( db => $name, id => '_security', host => $host, - data => "{ \"admins\": ${admins}, \"readers\": ${readers} }", + data => "{ \"admins\": ${admins}, \"members\": ${members} }", require => Couchdb::Query["create_db_${name}"] } } |