Permalink
Browse files

Added cloud-init scripts for membase server 1.7.2

  • Loading branch information...
1 parent e417f22 commit 1576b901d176c4c88a37bc2293bd7df0af2e99cd @steveyen steveyen committed Oct 28, 2011
Showing with 61 additions and 1 deletion.
  1. +1 −1 README.md
  2. +30 −0 membase-server-community_x86_1.7.2.rpm.install
  3. +30 −0 membase-server-community_x86_64_1.7.2.rpm.install
View
@@ -21,7 +21,7 @@ When launching your EC2 instance, merely specify a UserData of
something like...
#include
- https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.0.rpm.install
+ https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.2.rpm.install
Or like...
@@ -0,0 +1,30 @@
+#!/bin/bash -ex
+
+MEMBASE_REST_PASSWORD=password
+MEMBASE_MAX_RAM_MB_PER_SERVER=500
+MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
+MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
+
+yum -y install openssl098e
+
+wget http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_1.7.2.rpm
+
+rpm -i membase-server-community*.rpm
+
+sleep 5
+
+/opt/membase/bin/membase cluster-init -c 127.0.0.1 \
+ --cluster-init-username=Administrator \
+ --cluster-init-password=${MEMBASE_REST_PASSWORD} \
+ --cluster-init-ramsize=${MEMBASE_MAX_RAM_MB_PER_SERVER}
+
+/opt/membase/bin/membase bucket-create -c 127.0.0.1 \
+ -u Administrator -p ${MEMBASE_REST_PASSWORD} \
+ --bucket=default \
+ --bucket-type=membase \
+ --bucket-password= \
+ --bucket-ramsize=${MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
+ --bucket-replica=${MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET}
+
+# At this point, visit http://$HOST:8091 for the Membase web console.
+
@@ -0,0 +1,30 @@
+#!/bin/bash -ex
+
+MEMBASE_REST_PASSWORD=password
+MEMBASE_MAX_RAM_MB_PER_SERVER=500
+MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
+MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
+
+yum -y install openssl098e
+
+wget http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm
+
+rpm -i membase-server-community*.rpm
+
+sleep 5
+
+/opt/membase/bin/membase cluster-init -c 127.0.0.1 \
+ --cluster-init-username=Administrator \
+ --cluster-init-password=${MEMBASE_REST_PASSWORD} \
+ --cluster-init-ramsize=${MEMBASE_MAX_RAM_MB_PER_SERVER}
+
+/opt/membase/bin/membase bucket-create -c 127.0.0.1 \
+ -u Administrator -p ${MEMBASE_REST_PASSWORD} \
+ --bucket=default \
+ --bucket-type=membase \
+ --bucket-password= \
+ --bucket-ramsize=${MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
+ --bucket-replica=${MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET}
+
+# At this point, visit http://$HOST:8091 for the Membase web console.
+

0 comments on commit 1576b90

Please sign in to comment.