Permalink
Browse files

Always finish WaitForMembase0 condition

  • Loading branch information...
steveyen committed Jul 15, 2011
1 parent e3151f1 commit 4aa2cfb38e1328592cae4de17910d9399507ac13
View
@@ -95,18 +95,21 @@
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
" --bucket-replica=1","\n",
" curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
"\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n",
<% else %>
" /opt/membase/bin/membase server-add",
" -u Administrator -p ", { "Ref" : "RESTPassword" },
" -c ", { "Fn::GetAtt" : [ "Membase0", "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\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
<% end %>
]]}}
}
<% if i > 0 %>
View
@@ -95,13 +95,16 @@
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
" --bucket-replica=1","\n",
" curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
"\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n",
"fi","\n"
,
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
"\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
]]}}
}
View
@@ -95,13 +95,16 @@
" --bucket-password=",
" --bucket-ramsize=", { "Ref" : "RAMForDefaultBucket" },
" --bucket-replica=1","\n",
" curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
"\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n",
"fi","\n"
,
"curl -X PUT -H 'Content-Type:' --data-binary '{\"Status\" : \"SUCCESS\",",
"\"Reason\" : \"Membase0 node is ready\",",
"\"UniqueId\" : \"membase\",",
"\"Data\" : \"Done\"}' ",
"\"", {"Ref" : "WaitForMembase0WaitHandle"}, "\"\n"
]]}}
}
@@ -145,6 +148,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -191,6 +195,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -237,6 +242,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -283,6 +289,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -329,6 +336,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -375,6 +383,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -421,6 +430,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -467,6 +477,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
@@ -513,6 +524,7 @@
" --server-add=`hostname -i`:8091","\n",
"fi","\n"
]]}}
}
Oops, something went wrong.

0 comments on commit 4aa2cfb

Please sign in to comment.