heat templates : fix IHA HeartbeatFailureAlarm during instance build

The HeartbeatFailureAlarm triggers prematurely while the instance is
building, because cfn-init doesn't create the files (hence the
heartbeat cron-job) until after the packges are all installed.
If we make the HeartbeatFailureAlarm depend on the WaitCondition, it
won't be created until the instance is fully built.

fixes bug 1100719

Change-Id: Iae73aa0974a3061f56aa3ee52598687f32c0f19b
Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2013-01-17 11:22:09 +00:00
parent 8d5d9a908d
commit 42f2134ff7
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@
},
"HeartbeatFailureAlarm": {
"Type": "AWS::CloudWatch::Alarm",
"DependsOn" : "WaitCondition",
"Properties": {
"AlarmDescription": "Restart the WikiDatabase if we miss a heartbeat",
"MetricName": "Heartbeat",