Add a waitcondition for signalling stack-up.
authorRobert Collins <rbtcollins@hp.com>
Thu, 10 Oct 2013 00:56:30 +0000 (13:56 +1300)
committerRobert Collins <rbtcollins@hp.com>
Thu, 10 Oct 2013 01:21:21 +0000 (14:21 +1300)
Without this we need horrible hacks to detect whether the cloud is
ready to use.

Change-Id: Ic5c5fd16c6c283d3d339e1f1238d3349d0b93f7c

overcloud-source.yaml

index 442a21e..98c3854 100644 (file)
@@ -81,6 +81,15 @@ Resources:
       UserName:
         Ref: User
     Type: AWS::IAM::AccessKey
+  CompletionCondition:
+    Type: AWS::CloudFormation::WaitCondition
+    DependsOn: notcompute
+    Properties:
+      Handle: {Ref: CompletionHandle}
+      Count: '1'
+      Timeout: '1800'
+  CompletionHandle:
+    Type: AWS::CloudFormation::WaitConditionHandle
   ComputeKey:
     Properties:
       UserName:
@@ -138,6 +147,8 @@ Resources:
         volume_size_mb: '5000'
         service-password:
           Ref: CinderPassword
+      completion-handle:
+        Ref: CompletionHandle
       controller-address:
         Fn::Select:
          - 0