summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-07 14:49:41 +0100
committervarac <varacanero@zeromail.org>2013-03-07 14:49:41 +0100
commit4bd248cfc6e45710e3ecc4725e3eb5641cf679b4 (patch)
treed81a3626f1709c0e290b122f699f041d796cb441
parentdcb8a082ac842b0660819ea61f9448c4e373746e (diff)
starting bigcouch support
-rw-r--r--bigcouch.pp12
-rw-r--r--templates/bigcouch/vm.args23
2 files changed, 35 insertions, 0 deletions
diff --git a/bigcouch.pp b/bigcouch.pp
new file mode 100644
index 0000000..ecf7c90
--- /dev/null
+++ b/bigcouch.pp
@@ -0,0 +1,12 @@
+class couchdb::bigcouch {
+ package { 'bigcouch':
+ ensure => installed,
+ }
+ file { '/opt/bigcouch/etc/vm.args':
+ source => template('couchdb/bigcouch/vm.args'),
+ mode => '0644',
+ owner => 'bigcouch',
+ group => 'bigcouch',
+ require => Package['bigcouch']
+ }
+}
diff --git a/templates/bigcouch/vm.args b/templates/bigcouch/vm.args
new file mode 100644
index 0000000..e7e2d1d
--- /dev/null
+++ b/templates/bigcouch/vm.args
@@ -0,0 +1,23 @@
+# Each node in the system must have a unique name. A name can be short
+# (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 %>
+
+# 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
+
+# Tell SASL not to log progress reports
+-sasl errlog_type error
+
+# Use kernel poll functionality if supported by emulator
++K true
+
+# Start a pool of asynchronous IO threads
++A 16
+
+# Comment this line out to enable the interactive Erlang shell on startup
++Bd -noinput
+