summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/mirror.pp
diff options
context:
space:
mode:
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}")