Permalink
Browse files

Emit couchbase server templates

  • Loading branch information...
steveyen committed Aug 11, 2011
1 parent ee0f2e7 commit 462ce7df4b5fdd7f5b209a89eff11930f782ccb4
Showing with 33,898 additions and 5,251 deletions.
  1. +29 −1 Makefile
  2. +1 −0 gen-pack
  3. +26 −26 membase.erb
  4. +206 −0 packs/couchbase-2.0.0-32bit/1-pack-couchbase
  5. +782 −0 packs/couchbase-2.0.0-32bit/10-pack-couchbase
  6. +6,542 −0 packs/couchbase-2.0.0-32bit/100-pack-couchbase
  7. +270 −0 packs/couchbase-2.0.0-32bit/2-pack-couchbase
  8. +1,422 −0 packs/couchbase-2.0.0-32bit/20-pack-couchbase
  9. +334 −0 packs/couchbase-2.0.0-32bit/3-pack-couchbase
  10. +398 −0 packs/couchbase-2.0.0-32bit/4-pack-couchbase
  11. +462 −0 packs/couchbase-2.0.0-32bit/5-pack-couchbase
  12. +3,342 −0 packs/couchbase-2.0.0-32bit/50-pack-couchbase
  13. +526 −0 packs/couchbase-2.0.0-32bit/6-pack-couchbase
  14. +211 −0 packs/couchbase-2.0.0-64bit/1-pack-couchbase
  15. +787 −0 packs/couchbase-2.0.0-64bit/10-pack-couchbase
  16. +6,547 −0 packs/couchbase-2.0.0-64bit/100-pack-couchbase
  17. +275 −0 packs/couchbase-2.0.0-64bit/2-pack-couchbase
  18. +1,427 −0 packs/couchbase-2.0.0-64bit/20-pack-couchbase
  19. +339 −0 packs/couchbase-2.0.0-64bit/3-pack-couchbase
  20. +403 −0 packs/couchbase-2.0.0-64bit/4-pack-couchbase
  21. +467 −0 packs/couchbase-2.0.0-64bit/5-pack-couchbase
  22. +3,347 −0 packs/couchbase-2.0.0-64bit/50-pack-couchbase
  23. +531 −0 packs/couchbase-2.0.0-64bit/6-pack-couchbase
  24. +16 −16 packs/membase-1.7.0-32bit/1-pack-membase
  25. +70 −70 packs/membase-1.7.0-32bit/10-pack-membase
  26. +610 −610 packs/membase-1.7.0-32bit/100-pack-membase
  27. +22 −22 packs/membase-1.7.0-32bit/2-pack-membase
  28. +130 −130 packs/membase-1.7.0-32bit/20-pack-membase
  29. +28 −28 packs/membase-1.7.0-32bit/3-pack-membase
  30. +34 −34 packs/membase-1.7.0-32bit/4-pack-membase
  31. +40 −40 packs/membase-1.7.0-32bit/5-pack-membase
  32. +310 −310 packs/membase-1.7.0-32bit/50-pack-membase
  33. +46 −46 packs/membase-1.7.0-32bit/6-pack-membase
  34. +16 −16 packs/membase-1.7.0-64bit/1-pack-membase
  35. +70 −70 packs/membase-1.7.0-64bit/10-pack-membase
  36. +610 −610 packs/membase-1.7.0-64bit/100-pack-membase
  37. +22 −22 packs/membase-1.7.0-64bit/2-pack-membase
  38. +130 −130 packs/membase-1.7.0-64bit/20-pack-membase
  39. +28 −28 packs/membase-1.7.0-64bit/3-pack-membase
  40. +34 −34 packs/membase-1.7.0-64bit/4-pack-membase
  41. +40 −40 packs/membase-1.7.0-64bit/5-pack-membase
  42. +310 −310 packs/membase-1.7.0-64bit/50-pack-membase
  43. +46 −46 packs/membase-1.7.0-64bit/6-pack-membase
  44. +16 −16 packs/membase-1.7.1-32bit/1-pack-membase
  45. +70 −70 packs/membase-1.7.1-32bit/10-pack-membase
  46. +610 −610 packs/membase-1.7.1-32bit/100-pack-membase
  47. +22 −22 packs/membase-1.7.1-32bit/2-pack-membase
  48. +130 −130 packs/membase-1.7.1-32bit/20-pack-membase
  49. +28 −28 packs/membase-1.7.1-32bit/3-pack-membase
  50. +34 −34 packs/membase-1.7.1-32bit/4-pack-membase
  51. +40 −40 packs/membase-1.7.1-32bit/5-pack-membase
  52. +310 −310 packs/membase-1.7.1-32bit/50-pack-membase
  53. +46 −46 packs/membase-1.7.1-32bit/6-pack-membase
  54. +16 −16 packs/membase-1.7.1-64bit/1-pack-membase
  55. +70 −70 packs/membase-1.7.1-64bit/10-pack-membase
  56. +610 −610 packs/membase-1.7.1-64bit/100-pack-membase
  57. +22 −22 packs/membase-1.7.1-64bit/2-pack-membase
  58. +130 −130 packs/membase-1.7.1-64bit/20-pack-membase
  59. +28 −28 packs/membase-1.7.1-64bit/3-pack-membase
  60. +34 −34 packs/membase-1.7.1-64bit/4-pack-membase
  61. +40 −40 packs/membase-1.7.1-64bit/5-pack-membase
  62. +310 −310 packs/membase-1.7.1-64bit/50-pack-membase
  63. +46 −46 packs/membase-1.7.1-64bit/6-pack-membase
View
@@ -1,4 +1,6 @@
-all: gen-membase-1.7.1-packs-32bit gen-membase-1.7.1-packs-64bit gen-membase-1.7.0-packs-32bit gen-membase-1.7.0-packs-64bit
+all: gen-membase-1.7.0-packs-32bit gen-membase-1.7.0-packs-64bit \
+ gen-membase-1.7.1-packs-32bit gen-membase-1.7.1-packs-64bit \
+ gen-couchbase-2.0.0-packs-32bit gen-couchbase-2.0.0-packs-64bit
gen-membase-1.7.1-packs-32bit:
./gen-pack membase.erb 1 http://packages.couchbase.com/releases/1.7.1/membase-server-community_x86_1.7.1.rpm > packs/membase-1.7.1-32bit/1-pack-membase
@@ -48,3 +50,29 @@ gen-membase-1.7.0-packs-64bit:
./gen-pack membase.erb 50 http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_64_1.7.0.rpm > packs/membase-1.7.0-64bit/50-pack-membase
./gen-pack membase.erb 100 http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_64_1.7.0.rpm > packs/membase-1.7.0-64bit/100-pack-membase
+gen-couchbase-2.0.0-packs-32bit:
+ mkdir -p packs/couchbase-2.0.0-32bit
+ ./gen-pack membase.erb 1 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/1-pack-couchbase
+ ./gen-pack membase.erb 2 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/2-pack-couchbase
+ ./gen-pack membase.erb 3 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/3-pack-couchbase
+ ./gen-pack membase.erb 4 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/4-pack-couchbase
+ ./gen-pack membase.erb 5 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/5-pack-couchbase
+ ./gen-pack membase.erb 6 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/6-pack-couchbase
+ ./gen-pack membase.erb 10 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/10-pack-couchbase
+ ./gen-pack membase.erb 20 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/20-pack-couchbase
+ ./gen-pack membase.erb 50 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/50-pack-couchbase
+ ./gen-pack membase.erb 100 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm > packs/couchbase-2.0.0-32bit/100-pack-couchbase
+
+gen-couchbase-2.0.0-packs-64bit:
+ mkdir -p packs/couchbase-2.0.0-64bit
+ ./gen-pack membase.erb 1 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/1-pack-couchbase
+ ./gen-pack membase.erb 2 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/2-pack-couchbase
+ ./gen-pack membase.erb 3 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/3-pack-couchbase
+ ./gen-pack membase.erb 4 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/4-pack-couchbase
+ ./gen-pack membase.erb 5 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/5-pack-couchbase
+ ./gen-pack membase.erb 6 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/6-pack-couchbase
+ ./gen-pack membase.erb 10 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/10-pack-couchbase
+ ./gen-pack membase.erb 20 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/20-pack-couchbase
+ ./gen-pack membase.erb 50 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/50-pack-couchbase
+ ./gen-pack membase.erb 100 http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_64_2.0.0.rpm > packs/couchbase-2.0.0-64bit/100-pack-couchbase
+
View
@@ -9,6 +9,7 @@ require 'erb'
erb_path = ARGV[0]
num_instances = ARGV[1].to_i
pkg_url = ARGV[2] || 'http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_1.7.0.rpm'
+pkg_base = pkg_url.split('/')[-1].split('-')[0] # membase or couchbase
pkg_64 = pkg_url.include?('_64_')
default_instance_type = 'm1.small'
View
@@ -1,18 +1,18 @@
{
"AWSTemplateFormatVersion" : "2010-09-09",
- "Description" : "Template for Membase Server on EC2",
+ "Description" : "Template for <%= pkg_base %> server on EC2",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
"InstanceType": {
"Default": "<%= default_instance_type %>",
- "Description": "Type of EC2 instances for the Membase servers",
+ "Description": "Type of EC2 instances for the <%= pkg_base %> servers",
"Type": "String"
},
- "MembasePackageURL" : {
- "Description" : "URL to Membase software package",
+ "PackageURL" : {
+ "Description" : "URL to <%= pkg_base %> server software package",
"Type" : "String",
"Default" : "<%= pkg_url %>"
},
@@ -71,7 +71,7 @@
"Resources" : {
<% for i in (0..(num_instances - 1)) %>
- "Membase<%= i %>" : {
+ "ServerNode<%= i %>" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"KeyName" : { "Ref" : "KeyName" },
@@ -98,8 +98,8 @@
"Key" : "Name",
"Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-<%= i %>" ]]}
}, {
- "Key" : "MembasePackageURL",
- "Value" : { "Ref" : "MembasePackageURL" }
+ "Key" : "PackageURL",
+ "Value" : { "Ref" : "PackageURL" }
}, {
"Key" : "UserTag",
"Value" : { "Ref" : "UserTag" }
@@ -108,24 +108,24 @@
"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",
+ "wget ", { "Ref" : "PackageURL" },"\n",
+ "rpm -i <%= pkg_base %>-server-community*.rpm","\n",
"sleep 5","\n",
"if [ \"host:port\" != \"", { "Ref" : "ExistingClusterHostPort" }, "\" ]; then","\n",
- " echo Existing membase cluster...","\n",
- " /opt/membase/bin/membase server-add",
+ " echo Existing <%= pkg_base %> cluster...","\n",
+ " /opt/<%= pkg_base %>/bin/membase server-add",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" -c ", { "Ref" : "ExistingClusterHostPort" },
" --server-add=`hostname -i`:8091","\n",
"else","\n",
- " echo New membase cluster...","\n",
+ " echo New <%= pkg_base %> cluster...","\n",
<% if i == 0 %>
- " /opt/membase/bin/membase cluster-init -c 127.0.0.1",
+ " /opt/<%= pkg_base %>/bin/membase cluster-init -c 127.0.0.1",
" --cluster-init-username=Administrator",
" --cluster-init-password=", { "Ref" : "RESTPassword" },
" --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
" if [ \"0\" != \"", { "Ref" : "RAMForDefaultBucket" }, "\" ]; then","\n",
- " /opt/membase/bin/membase bucket-create -c 127.0.0.1",
+ " /opt/<%= pkg_base %>/bin/membase bucket-create -c 127.0.0.1",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" --bucket=default",
" --bucket-type=membase",
@@ -134,25 +134,25 @@
" --bucket-replica=1","\n",
" fi","\n",
<% else %>
- " /opt/membase/bin/membase server-add",
+ " /opt/<%= pkg_base %>/bin/membase server-add",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
- " -c ", { "Fn::GetAtt" : [ "Membase0", "PublicIp" ] },
+ " -c ", { "Fn::GetAtt" : [ "ServerNode0", "PublicIp" ] },
" --server-add=`hostname -i`:8091","\n",
<% end %>
"fi","\n"
<% if i == 0 %>
,
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
- "\"Reason\" : \"Membase0 node is ready\",",
- "\"UniqueId\" : \"membase\",",
+ "\"Reason\" : \"ServerNode0 node is ready\",",
+ "\"UniqueId\" : \"<%= pkg_base %>\",",
"\"Data\" : \"Done\"}' ",
- "\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
+ "\"", {"Ref" : "WaitForServerNode0WaitHandle"}, "\"\n"
<% end %>
]]}}
}
<% if i > 0 %>
,
- "DependsOn" : "WaitForMembase0"
+ "DependsOn" : "WaitForServerNode0"
<% end %>
},
<% end %>
@@ -196,26 +196,26 @@
}
},
- "WaitForMembase0WaitHandle" : {
+ "WaitForServerNode0WaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
- "WaitForMembase0" : {
+ "WaitForServerNode0" : {
"Type" : "AWS::CloudFormation::WaitCondition",
- "DependsOn" : "Membase0",
+ "DependsOn" : "ServerNode0",
"Properties" : {
- "Handle" : {"Ref" : "WaitForMembase0WaitHandle"},
+ "Handle" : {"Ref" : "WaitForServerNode0WaitHandle"},
"Timeout" : "1200"
}
}
},
"Outputs" : {
"RESTWebConsoleURL" : {
- "Description" : "The URL for the newly created Membase node(s)",
- "Value" : { "Fn::Join" : ["", [ "http://", { "Fn::GetAtt" : [ "Membase0", "PublicIp" ] }, ":8091" ]]}
+ "Description" : "The URL for the newly created <%= pkg_base %> node(s)",
+ "Value" : { "Fn::Join" : ["", [ "http://", { "Fn::GetAtt" : [ "ServerNode0", "PublicIp" ] }, ":8091" ]]}
}
}
}
@@ -0,0 +1,206 @@
+{
+ "AWSTemplateFormatVersion" : "2010-09-09",
+ "Description" : "Template for couchbase server on EC2",
+ "Parameters" : {
+ "KeyName" : {
+ "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
+ "Type" : "String"
+ },
+ "InstanceType": {
+ "Default": "m1.small",
+ "Description": "Type of EC2 instances for the couchbase servers",
+ "Type": "String"
+ },
+ "PackageURL" : {
+ "Description" : "URL to couchbase server software package",
+ "Type" : "String",
+ "Default" : "http://packages.couchbase.com/releases/2.0.0/couchbase-server-community_x86_2.0.0.rpm"
+ },
+ "RESTPassword" : {
+ "NoEcho": "true",
+ "Description" : "Password for REST Administrator API and web-console interface",
+ "Type" : "String"
+ },
+ "RAMPerServer" : {
+ "Description" : "RAM quota in MB for each node in the cluster",
+ "Type" : "Number",
+ "Default" : "500",
+ "MinValue" : "200"
+ },
+ "RAMForDefaultBucket" : {
+ "Description" : "RAM quota in MB for each node for the default bucket. Should be <= RAMPerServer. Set to 0 for no default bucket.",
+ "Type" : "Number",
+ "Default" : "500",
+ "MinValue" : "0"
+ },
+ "ExistingClusterHostPort" : {
+ "Description" : "Optional 'host:port', if you want to join new node(s) to an existing cluster node. Leave as 'host:port' to not join to an existing cluster",
+ "Type" : "String",
+ "Default" : "host:port"
+ },
+ "UserTag" : {
+ "Description" : "Optional tag value, to help track your launched EC2 instances",
+ "Type" : "String",
+ "Default" : "none"
+ }
+ },
+
+ "Mappings" : {
+ "AWSInstanceType2Arch" : {
+
+ "m1.small" : { "Arch" : "32" },
+ "c1.medium" : { "Arch" : "32" }
+
+ },
+ "AWSRegionArch2AMI" : {
+ "us-east-1" : { "32" : "ami-8c1fece5", "64" : "ami-8e1fece7" },
+ "us-west-1" : { "32" : "ami-3bc9997e", "64" : "ami-c7c99982" },
+ "eu-west-1" : { "32" : "ami-47cefa33", "64" : "ami-45cefa31" },
+ "ap-southeast-1" : { "32" : "ami-6af08e38", "64" : "ami-6ef08e3c" },
+ "ap-northeast-1" : { "32" : "ami-300ca731", "64" : "ami-2e0ca72f" }
+ }
+ },
+
+ "Resources" : {
+
+ "ServerNode0" : {
+ "Type" : "AWS::EC2::Instance",
+ "Properties" : {
+ "KeyName" : { "Ref" : "KeyName" },
+ "SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],
+ "ImageId": {
+ "Fn::FindInMap": [
+ "AWSRegionArch2AMI",
+ {
+ "Ref": "AWS::Region"
+ },
+ {
+ "Fn::FindInMap": [
+ "AWSInstanceType2Arch",
+ {
+ "Ref": "InstanceType"
+ },
+ "Arch"
+ ]
+ }
+ ]
+ },
+ "InstanceType" : { "Ref" : "InstanceType" },
+ "Tags" : [ {
+ "Key" : "Name",
+ "Value" : { "Fn::Join" : ["", [ { "Ref" : "AWS::StackName" }, "-0" ]]}
+ }, {
+ "Key" : "PackageURL",
+ "Value" : { "Ref" : "PackageURL" }
+ }, {
+ "Key" : "UserTag",
+ "Value" : { "Ref" : "UserTag" }
+ }
+ ],
+ "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
+ "#!/bin/bash -ex","\n",
+ "yum -y install openssl098e","\n",
+ "wget ", { "Ref" : "PackageURL" },"\n",
+ "rpm -i couchbase-server-community*.rpm","\n",
+ "sleep 5","\n",
+ "if [ \"host:port\" != \"", { "Ref" : "ExistingClusterHostPort" }, "\" ]; then","\n",
+ " echo Existing couchbase cluster...","\n",
+ " /opt/couchbase/bin/membase server-add",
+ " -u Administrator -p ", { "Ref" : "RESTPassword" },
+ " -c ", { "Ref" : "ExistingClusterHostPort" },
+ " --server-add=`hostname -i`:8091","\n",
+ "else","\n",
+ " echo New couchbase cluster...","\n",
+
+ " /opt/couchbase/bin/membase cluster-init -c 127.0.0.1",
+ " --cluster-init-username=Administrator",
+ " --cluster-init-password=", { "Ref" : "RESTPassword" },
+ " --cluster-init-ramsize=", { "Ref" : "RAMPerServer" },"\n",
+ " if [ \"0\" != \"", { "Ref" : "RAMForDefaultBucket" }, "\" ]; then","\n",
+ " /opt/couchbase/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",
+ " fi","\n",
+
+ "fi","\n"
+
+ ,
+ "curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
+ "\"Reason\" : \"ServerNode0 node is ready\",",
+ "\"UniqueId\" : \"couchbase\",",
+ "\"Data\" : \"Done\"}' ",
+ "\"", {"Ref" : "WaitForServerNode0WaitHandle"}, "\"\n"
+
+ ]]}}
+ }
+
+ },
+
+
+ "InstanceSecurityGroup" : {
+ "Type" : "AWS::EC2::SecurityGroup",
+ "Properties" : {
+ "GroupDescription" :
+ "Enable SSH access via port 22, web access to 8091, membase/memcached protocol access to 11211 and 11210, and erlang access",
+ "SecurityGroupIngress" : [ {
+ "IpProtocol" : "tcp",
+ "FromPort" : "22",
+ "ToPort" : "22",
+ "CidrIp" : "0.0.0.0/0"
+ }, {
+ "IpProtocol" : "tcp",
+ "FromPort" : "8091",
+ "ToPort" : "8091",
+ "CidrIp" : "0.0.0.0/0"
+ }, {
+ "IpProtocol" : "tcp",
+ "FromPort" : "11211",
+ "ToPort" : "11211",
+ "CidrIp" : "0.0.0.0/0"
+ }, {
+ "IpProtocol" : "tcp",
+ "FromPort" : "11210",
+ "ToPort" : "11210",
+ "CidrIp" : "0.0.0.0/0"
+ }, {
+ "IpProtocol" : "tcp",
+ "FromPort" : "4369",
+ "ToPort" : "4369",
+ "CidrIp" : "0.0.0.0/0"
+ }, {
+ "IpProtocol" : "tcp",
+ "FromPort" : "21100",
+ "ToPort" : "21299",
+ "CidrIp" : "0.0.0.0/0"
+ } ]
+ }
+ },
+
+ "WaitForServerNode0WaitHandle" : {
+ "Type" : "AWS::CloudFormation::WaitConditionHandle",
+ "Properties" : {
+ }
+ },
+
+ "WaitForServerNode0" : {
+ "Type" : "AWS::CloudFormation::WaitCondition",
+ "DependsOn" : "ServerNode0",
+ "Properties" : {
+ "Handle" : {"Ref" : "WaitForServerNode0WaitHandle"},
+ "Timeout" : "1200"
+ }
+ }
+ },
+
+ "Outputs" : {
+ "RESTWebConsoleURL" : {
+ "Description" : "The URL for the newly created couchbase node(s)",
+ "Value" : { "Fn::Join" : ["", [ "http://", { "Fn::GetAtt" : [ "ServerNode0", "PublicIp" ] }, ":8091" ]]}
+ }
+ }
+}
+
Oops, something went wrong.

0 comments on commit 462ce7d

Please sign in to comment.