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 <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2013-01-17 14:43:34 +00:00
parent 42f2134ff7
commit 293d7756ad
1 changed files with 13 additions and 0 deletions

View File

@ -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"