summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-07-14 19:48:01 +0200
committerAzul <azul@riseup.net>2014-07-14 19:48:01 +0200
commitf01b3586215bdc10f0067fa0f6d940be8e88bcea (patch)
tree305c2e593e1006a04525c7dcd7cf0c5601b5e8a3
parent7ef8a6f33d5e36ec8ae78786cb56a6c604c80105 (diff)
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.
-rw-r--r--manifests/mirror_db.pp2
1 files changed, 1 insertions, 1 deletions
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}"]
}
}