summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/mirror.pp
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-06-20 19:10:44 +0200
committerelijah <elijah@riseup.net>2014-06-25 18:17:31 -0700
commita8f6415b0869018fd8d4ac947814529e8e85ace2 (patch)
tree950e466b9ef0138cb4a388e686769ea72487f769 /puppet/modules/site_couchdb/manifests/mirror.pp
parent2bd603b9532fac70a25add8661acc94acb8598f8 (diff)
add replication user
Diffstat (limited to 'puppet/modules/site_couchdb/manifests/mirror.pp')
-rw-r--r--puppet/modules/site_couchdb/manifests/mirror.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_couchdb/manifests/mirror.pp b/puppet/modules/site_couchdb/manifests/mirror.pp
index f3b43cc2..2a44b1e9 100644
--- a/puppet/modules/site_couchdb/manifests/mirror.pp
+++ b/puppet/modules/site_couchdb/manifests/mirror.pp
@@ -14,9 +14,11 @@ class site_couchdb::mirror {
$masters = $site_couchdb::couchdb_config['replication']['masters']
$master_node_names = keys($site_couchdb::couchdb_config['replication']['masters'])
$master_node = $masters[$master_node_names[0]]
+ $user = $site_couchdb::couchdb_replication_user
+ $password = $site_couchdb::couchdb_replication_pw
$from_host = $master_node['domain_internal']
$from_port = $master_node['couch_port']
- $from = "${from_host}:${from_port}"
+ $from = "http://${user}:${password}@${from_host}:${from_port}"
notice("mirror from: ${from}")