From f01b3586215bdc10f0067fa0f6d940be8e88bcea Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 14 Jul 2014 19:48:01 +0200 Subject: set owner of replication so comparison works The owner is automagically set when creating a replication. we get the replication doc to test if it's up to date. For the comparison to work we need to set the owner too. --- manifests/mirror_db.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/mirror_db.pp b/manifests/mirror_db.pp index 7615c65..b07b674 100644 --- a/manifests/mirror_db.pp +++ b/manifests/mirror_db.pp @@ -15,7 +15,7 @@ define couchdb::mirror_db ( id => "${name}_replication", netrc => "/etc/couchdb/couchdb-${user}.netrc", host => $host, - data => "{ \"source\": \"${source}\", \"target\": \"${target}\", \"continuous\": true, \"user_ctx\": { \"name\": \"${user}\", \"roles\": [\"${role}\"] } }", + data => "{ \"source\": \"${source}\", \"target\": \"${target}\", \"continuous\": true, \"user_ctx\": { \"name\": \"${user}\", \"roles\": [\"${role}\"] }, \"owner\": \"${user}\" }", require => Couchdb::Query["create_db_${name}"] } } -- cgit v1.2.3