diff options
| author | varac <varacanero@zeromail.org> | 2013-03-16 13:57:14 +0100 | 
|---|---|---|
| committer | varac <varacanero@zeromail.org> | 2013-03-16 13:57:14 +0100 | 
| commit | a275999ab39b49afa2bb0c998c58aec424b4a8c0 (patch) | |
| tree | b61397115a9dab821417a6e8ec15bad71392c317 /puppet | |
| parent | 7c5f2117c8edb12304fb1221bc00e07b9734dff6 (diff) | |
pick the first couchdb host for webapp couch config
Until we have a proper load balancing setup
(see https://leap.se/code/issues/1994)
Diffstat (limited to 'puppet')
| -rw-r--r-- | puppet/modules/site_webapp/manifests/couchdb.pp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/puppet/modules/site_webapp/manifests/couchdb.pp b/puppet/modules/site_webapp/manifests/couchdb.pp index 6cac666f..9312cdb1 100644 --- a/puppet/modules/site_webapp/manifests/couchdb.pp +++ b/puppet/modules/site_webapp/manifests/couchdb.pp @@ -1,7 +1,10 @@  class site_webapp::couchdb {    $webapp           = hiera('webapp') -  $couchdb_host     = $webapp['couchdb_hosts'] +  $couchdb_hosts    = $webapp['couchdb_hosts'] +  # for now, pick the first couchdb host before we have a working +  # load balancing setup (see https://leap.se/code/issues/1994) +  $couchdb_host     = $couchdb_hosts[0]    $couchdb_user     = $webapp['couchdb_user']['username']    $couchdb_password = $webapp['couchdb_user']['password']  | 
