From: Steven Hardy Date: Thu, 17 Jan 2013 14:43:34 +0000 (+0000) Subject: heat templates : IHA enable cfn-hup X-Git-Tag: 2014.1~988 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=293d7756ad73d261753492dc3f4cfafbf36653a2;p=openstack-build%2Fheat-build.git 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 --- 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"