]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat templates : IHA enable cfn-hup
authorSteven Hardy <shardy@redhat.com>
Thu, 17 Jan 2013 14:43:34 +0000 (14:43 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 17 Jan 2013 15:41:10 +0000 (15:41 +0000)
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>
templates/WordPress_Single_Instance_With_IHA.template

index 6a392a41b6a84cdce652c48f20e9b770cfb1e1fe..15a3ad1e2feec8d7dd20402ae33a2ef76e0d0af8 100644 (file)
                 "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"