summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/mirror.pp
diff options
context:
space:
mode:
authorElijah Sparrow <elijah@riseup.net>2014-06-20 13:51:42 -0700
committerElijah Sparrow <elijah@riseup.net>2014-06-20 13:51:42 -0700
commit086d8a0f3740b4c138088411d4d5d0b561e92165 (patch)
tree781a930dfe7533187cc105bf44fef6c78f825884 /puppet/modules/site_couchdb/manifests/mirror.pp
parent2f7ee09eb9f184349057802e0d6c0102200d2419 (diff)
parentf0459aad2e72646de27823ae4fb9011f74a3c16d (diff)
Merge pull request #3 from azul/feature/couch
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 a6222f6a..df305737 100644
--- a/puppet/modules/site_couchdb/manifests/mirror.pp
+++ b/puppet/modules/site_couchdb/manifests/mirror.pp
@@ -11,9 +11,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}")