summaryrefslogtreecommitdiff
path: root/templates/bigcouch/vm.args
diff options
context:
space:
mode:
Diffstat (limited to 'templates/bigcouch/vm.args')
-rw-r--r--templates/bigcouch/vm.args8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/bigcouch/vm.args b/templates/bigcouch/vm.args
index e7e2d1d..c21dad4 100644
--- a/templates/bigcouch/vm.args
+++ b/templates/bigcouch/vm.args
@@ -2,12 +2,12 @@
# (specified using -sname) or it can by fully qualified (-name). There can be
# no communication between nodes running with the -sname flag and those running
# with the -name flag.
--name bigcouch@<%= fqdn %>
+-name bigcouch@<%= scope.lookupvar('::hostname') %>
# All nodes must share the same magic cookie for distributed Erlang to work.
# Comment out this line if you synchronized the cookies by other means (using
# the ~/.erlang.cookie file, for example).
--setcookie monster
+-setcookie <%= scope.lookupvar('::couchdb::bigcouch_cookie') %>
# Tell SASL not to log progress reports
-sasl errlog_type error
@@ -21,3 +21,7 @@
# Comment this line out to enable the interactive Erlang shell on startup
+Bd -noinput
+# read config files
+# otherwise /etc/couchdb/local.d/admin.ini wouldn't be read mysteriously
+-couch_ini /etc/couchdb/default.ini /etc/couchdb/local.ini /etc/couchdb/local.d/admin.ini /etc/couchdb/default.ini /etc/couchdb/local.ini /etc/couchdb/local.d/admin.ini
+#