Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Later nodes DependsOn Membase0 getting created first

  • Loading branch information...
commit 9551db348d3b96c79f7c152fba2d5dfa7e697b14 1 parent 777acd5
@steveyen steveyen authored
View
49 membase.erb
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,48 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-<%= i %>" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+ <% if i == 0 %>
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
- <% if i == 0 %>
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
<% end %>
+ ]]}}
}
+ <% if i > 0 %>
+ ,
+ "DependsOn" : "WaitForMembase0"
+ <% end %>
},
<% end %>
@@ -121,17 +142,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
46 packs/1-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
@@ -121,17 +139,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
325 packs/10-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase2" : {
@@ -114,25 +137,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-2" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase3" : {
@@ -141,25 +169,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-3" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase4" : {
@@ -168,25 +201,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-4" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase5" : {
@@ -195,25 +233,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-5" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase6" : {
@@ -222,25 +265,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-6" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase7" : {
@@ -249,25 +297,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-7" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase8" : {
@@ -276,25 +329,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-8" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase9" : {
@@ -303,25 +361,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-9" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
@@ -364,17 +427,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
3,115 packs/100-pack-membase
1,814 additions, 1,301 deletions not shown
View
77 packs/2-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
@@ -148,17 +171,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
635 packs/20-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase2" : {
@@ -114,25 +137,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-2" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase3" : {
@@ -141,25 +169,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-3" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase4" : {
@@ -168,25 +201,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-4" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase5" : {
@@ -195,25 +233,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-5" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase6" : {
@@ -222,25 +265,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-6" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase7" : {
@@ -249,25 +297,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-7" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase8" : {
@@ -276,25 +329,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-8" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase9" : {
@@ -303,25 +361,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-9" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase10" : {
@@ -330,25 +393,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-10" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase11" : {
@@ -357,25 +425,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-11" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase12" : {
@@ -384,25 +457,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-12" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase13" : {
@@ -411,25 +489,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-13" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase14" : {
@@ -438,25 +521,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-14" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase15" : {
@@ -465,25 +553,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-15" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase16" : {
@@ -492,25 +585,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-16" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase17" : {
@@ -519,25 +617,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-17" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase18" : {
@@ -546,25 +649,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-18" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase19" : {
@@ -573,25 +681,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-19" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
@@ -634,17 +747,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
108 packs/3-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase2" : {
@@ -114,25 +137,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-2" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
@@ -175,17 +203,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
139 packs/4-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase2" : {
@@ -114,25 +137,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-2" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
"Membase3" : {
@@ -141,25 +169,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-3" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
- " --cluster-init-username=Administrator",
- " --cluster-init-password=", { "Ref" : "RESTPassword" },
- " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
- " -u Administrator -p ", { "Ref" : "RESTPassword" },
- " --bucket=default",
- " --bucket-type=membase",
- " --bucket-password=",
- " --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
+ "sleep 5","\n"
+ ]]}}
}
+
+ ,
+ "DependsOn" : "WaitForMembase0"
+
},
@@ -202,17 +235,17 @@
}
},
- "WaitForInstanceWaitHandle" : {
+ "WaitForMembase0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForInstance" : {
+ "WaitForMembase0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Membase0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForInstanceWaitHandle"},
+ "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
"Timeout" : "600"
}
}
View
170 packs/5-pack-membase
@@ -17,13 +17,13 @@
"Type" : "String"
},
"RAMPerServer" : {
- "Description" : "Maximum RAM quota in MB for each node in the cluster",
+ "Description" : "RAM quota in MB for each node in the cluster",
"Type" : "Number",
"Default" : "500",
"MinValue" : "200"
},
"RAMForDefaultBucket" : {
- "Description" : "Maximum RAM quota in MB for the default bucket. Should be <= RAMPerServer",
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer",
"Type" : "Number",
"Default" : "500",
"MinValue" : "0"
@@ -32,6 +32,11 @@
"Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node",
"Type" : "String",
"Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your CloudFormation launched instances",
+ "Type" : "String",
+ "Default" : "none"
}
},
@@ -53,32 +58,45 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",
"rpm -i membase-server-community*.rpm","\n",
- "sleep 5","\n",
- "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ "sleep 5","\n"
+
+ ,
+ "/opt/membase/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
- "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ "/opt/membase/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
- " --bucket-replica=1"
-
- ,"\n",
+ " --bucket-replica=1","\n",
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase node is ready\",",
+ "\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForInstanceWaitHandle"},"\"\n" ]]}}
+ "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ ]]}}
}
+
},
"Membase1" : {
@@ -87,25 +105,30 @@
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : { "Fn::Join" : ["",[
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-1" ]]}
+ }, {
+ "Key" : "MembasePackageURL",
+ "Value" : { "Ref" : "MembasePackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"#!/bin/bash -ex","\n",
"yum -y install openssl098e","\n",
"wget ", { "Ref" : "MembasePackageURL" },"\n",