Skip to content

Commit

Permalink
heat templates : IHA enable cfn-hup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Hardy committed Jan 17, 2013
1 parent 42f2134 commit 293d775
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/WordPress_Single_Instance_With_IHA.template
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 293d775

Please sign in to comment.