From 293d7756ad73d261753492dc3f4cfafbf36653a2 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 17 Jan 2013 14:43:34 +0000 Subject: [PATCH] heat templates : IHA enable cfn-hup The IHA template mentions cfn-hup in several places but doesn't actually enable it, so do so by adding the config file and crontab entry Change-Id: Ie852bba24a57c262a8d813d3b3fc76ba9b5e54b4 Signed-off-by: Steven Hardy --- .../WordPress_Single_Instance_With_IHA.template | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/templates/WordPress_Single_Instance_With_IHA.template b/templates/WordPress_Single_Instance_With_IHA.template index 6a392a41..15a3ad1e 100644 --- a/templates/WordPress_Single_Instance_With_IHA.template +++ b/templates/WordPress_Single_Instance_With_IHA.template @@ -143,10 +143,23 @@ "owner" : "root", "group" : "root" }, + "/etc/cfn/cfn-hup.conf" : { + "content" : { "Fn::Join" : ["", [ + "[main]\n", + "stack=", { "Ref" : "AWS::StackName" }, "\n", + "credential-file=/etc/cfn/cfn-credentials\n", + "region=", { "Ref" : "AWS::Region" }, "\n", + "interval=", { "Ref" : "HupPollInterval" }, "\n" + ]]}, + "mode" : "000400", + "owner" : "root", + "group" : "root" + }, "/tmp/cfn-hup-crontab.txt" : { "content" : { "Fn::Join" : ["", [ "MAIL=\"\"\n", "\n", + "* * * * * /opt/aws/bin/cfn-hup -f\n", "* * * * * /opt/aws/bin/cfn-push-stats ", " --watch ", { "Ref" : "HeartbeatFailureAlarm" }, " --heartbeat\n" -- 2.45.2