From: Roman Podoliaka Date: Mon, 13 Jan 2014 12:45:15 +0000 (+0200) Subject: Add a wait condition to undercloud stack X-Git-Tag: opnfv-6.0.0~2903 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cf45003e97d0007ea4e706bde7a62bdd014baf0d;p=apex-tripleo-heat-templates.git 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 --- 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