From 4597cf55613aa25e77ef9943c32918fd59ff65c2 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 22 Oct 2013 10:26:28 +0200 Subject: 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. --- manifests/create_db.pp | 4 ++-- 1 file 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}"] } } -- cgit v1.2.3