diff options
author | Elijah Sparrow <elijah@riseup.net> | 2014-06-20 13:51:42 -0700 |
---|---|---|
committer | Elijah Sparrow <elijah@riseup.net> | 2014-06-20 13:51:42 -0700 |
commit | 086d8a0f3740b4c138088411d4d5d0b561e92165 (patch) | |
tree | 781a930dfe7533187cc105bf44fef6c78f825884 /puppet/modules/site_couchdb/manifests/mirror.pp | |
parent | 2f7ee09eb9f184349057802e0d6c0102200d2419 (diff) | |
parent | f0459aad2e72646de27823ae4fb9011f74a3c16d (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.pp | 4 |
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}") |