summaryrefslogtreecommitdiffstats
path: root/undercloud-source.yaml
diff options
context:
space:
mode:
authorRoman Podoliaka <rpodolyaka@mirantis.com>2014-01-13 14:45:15 +0200
committerRoman Podoliaka <rpodolyaka@mirantis.com>2014-01-13 14:55:11 +0200
commitcf45003e97d0007ea4e706bde7a62bdd014baf0d (patch)
tree213200ba205b1f290a8ef9785281f7d5c8e2e898 /undercloud-source.yaml
parent5b3593cc0d2b5b51cbfb03041cfb6c3bc05f4381 (diff)
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
Diffstat (limited to 'undercloud-source.yaml')
-rw-r--r--undercloud-source.yaml11
1 files changed, 11 insertions, 0 deletions
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