From cf45003e97d0007ea4e706bde7a62bdd014baf0d Mon Sep 17 00:00:00 2001 From: Roman Podoliaka Date: Mon, 13 Jan 2014 14:45:15 +0200 Subject: Add a wait condition to undercloud stack Using of Heat wait conditions allows us to reliably reason when a stack creation is complete (as the completion handle is triggered when os-refresh-config completes). Change-Id: I89725143532177a0b4aea23c1c31bc7737da0896 --- undercloud-source.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'undercloud-source.yaml') diff --git a/undercloud-source.yaml b/undercloud-source.yaml index 35a017e6..6431dfd4 100644 --- a/undercloud-source.yaml +++ b/undercloud-source.yaml @@ -57,6 +57,15 @@ Resources: UserName: Ref: User Type: AWS::IAM::AccessKey + CompletionCondition: + Type: AWS::CloudFormation::WaitCondition + DependsOn: undercloud + Properties: + Handle: {Ref: CompletionHandle} + Count: '1' + Timeout: '1800' + CompletionHandle: + Type: AWS::CloudFormation::WaitConditionHandle User: Properties: Policies: @@ -86,6 +95,8 @@ Resources: cinder: db: mysql://cinder:unset@localhost/cinder volume_size_mb: '5000' + completion-handle: + Ref: CompletionHandle db-password: unset glance: backend: file -- cgit 1.2.3-korg