From 7793c80224dbe0f1baf33075bf7396b11aeb229d Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 10 Mar 2013 18:32:38 +0100 Subject: set bigcouch node name + cookie, include config files --- templates/bigcouch/vm.args | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates') 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 +# -- cgit v1.2.3