summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-10 18:32:38 +0100
committervarac <varacanero@zeromail.org>2013-03-10 18:32:38 +0100
commit7793c80224dbe0f1baf33075bf7396b11aeb229d (patch)
treedbf04933bc7bf841be04291acba3551203fb049a /templates
parentb24d2efb9d271763b73fc92f4582c21d872f6cfe (diff)
set bigcouch node name + cookie, include config files
Diffstat (limited to 'templates')
-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
+#