Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better variable names

  • Loading branch information...
commit c2aef169120e29d70fea8aa4d45cd69e14f4c988 1 parent 4538387
Steve Yen steveyen authored
5 couchbase-single-server-community_x86_64_2.0.0-dev-preview-3.rpm.install
View
@@ -12,8 +12,7 @@
# #include
# https://raw.github.com/couchbaselabs/cloud-init/master/couchbase-single-server-community_x86_64_2.0.0-dev-preview-3.rpm.install
#
-PASSWORD=password
-export PASSWORD
+COUCHBASE_PASSWORD=password
yum -y install openssl098e
@@ -21,7 +20,7 @@ wget http://files.couchbase.com/developer-previews/couchbase-single-server-2.0.0
rpm -i couchbase-single-server-community*.rpm
-curl -X PUT http://127.0.0.1:5984/_config/admins/admin -d '"${PASSWORD}"'
+curl -X PUT http://127.0.0.1:5984/_config/admins/admin -d \"${COUCHBASE_PASSWORD}\"
# At this point, Couchbase Single Server will be running but only
# listening on address 127.0.0.1. To fix this, change the
20 membase-server-community_x86_64_1.7.0.rpm.install
View
@@ -12,8 +12,10 @@
# #include
# https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.0.rpm.install
#
-PASSWORD=password
-export PASSWORD
+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
@@ -21,16 +23,20 @@ wget http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_6
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=${PASSWORD} \
- --cluster-init-ramsize=500
+ --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 ${PASSWORD} \
+ -u Administrator -p ${MEMBASE_REST_PASSWORD} \
--bucket=default \
--bucket-type=membase \
--bucket-password= \
- --bucket-ramsize=500 \
- --bucket-replica=1
+ --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.
Please sign in to comment.
Something went wrong with that request. Please try again.