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:
parent
42f2134ff7
commit
293d7756ad
@ -143,10 +143,23 @@
|
|||||||
"owner" : "root",
|
"owner" : "root",
|
||||||
"group" : "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" : {
|
"/tmp/cfn-hup-crontab.txt" : {
|
||||||
"content" : { "Fn::Join" : ["", [
|
"content" : { "Fn::Join" : ["", [
|
||||||
"MAIL=\"\"\n",
|
"MAIL=\"\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"* * * * * /opt/aws/bin/cfn-hup -f\n",
|
||||||
"* * * * * /opt/aws/bin/cfn-push-stats ",
|
"* * * * * /opt/aws/bin/cfn-push-stats ",
|
||||||
" --watch ", { "Ref" : "HeartbeatFailureAlarm" },
|
" --watch ", { "Ref" : "HeartbeatFailureAlarm" },
|
||||||
" --heartbeat\n"
|
" --heartbeat\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user