From 746601becc47fcee9fc85700f175a5b33b310979 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 10 May 2017 20:29:17 +0200 Subject: Nickserver direct access to couchdb on same node Depending whether couchdb is running on the same node as nickserver, couchdb is available on localhost: - When couchdb is running on a different node: Via stunnel, which is bound to 4000. - When couchdb is running on the same node: On port 5984 Resolves: #8793 --- puppet/modules/site_nickserver/manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'puppet/modules/site_nickserver') diff --git a/puppet/modules/site_nickserver/manifests/init.pp b/puppet/modules/site_nickserver/manifests/init.pp index cab13522..48f7b73d 100644 --- a/puppet/modules/site_nickserver/manifests/init.pp +++ b/puppet/modules/site_nickserver/manifests/init.pp @@ -28,9 +28,11 @@ class site_nickserver { # the port that nickserver is actually running on $nickserver_local_port = '64250' - # couchdb is available on localhost via stunnel, which is bound to 4000. + # couchdb is available on localhost: + # - When couchdb is running on a different node: Via stunnel, which is bound to 4000. + # - When couchdb is running on the same node: On port 5984 $couchdb_host = 'localhost' - $couchdb_port = '4000' + $couchdb_port = $nickserver['couchdb_port'] $sources = hiera('sources') -- cgit v1.2.3