]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat templates : Add boto config to HA templates
authorSteven Hardy <shardy@redhat.com>
Wed, 10 Oct 2012 09:03:11 +0000 (10:03 +0100)
committerSteven Hardy <shardy@redhat.com>
Fri, 12 Oct 2012 15:34:02 +0000 (16:34 +0100)
Add boto config to HA/IHA templates as it's now required for
authenticated cfn-push-stats which uses the CloudWatch API

Signed-off-by: Steven Hardy <shardy@redhat.com>
Change-Id: I8670f6774834e9f41870240496fe74728306cf17

templates/WordPress_Single_Instance_With_HA.template
templates/WordPress_Single_Instance_With_IHA.template

index a3c864ceb813278f091201876832956cd5128c57..02726ec67c4d1a18f892e2414133a6ed28f4aa47 100644 (file)
           " --region ", { "Ref" : "AWS::Region" },
           " || error_exit 'Failed to run cfn-init'\n",
 
+          "# Update boto config (template created by heat-jeos tdl)\n",
+          "sed -i \"s/__GATEWAY_IP__/",
+          "$(/sbin/ip route | grep \"^default\" | awk '{print $3}')/\"",
+          " /etc/boto.cfg \n",
+
           "# Setup MySQL root password and create a user\n",
           "mysqladmin -u root password '", { "Ref" : "DBRootPassword" },
           "' || error_exit 'Failed to initialize root password'\n",
index 1159c1a37a2eb035c02de88af374fccefde697da..5ca109832d2eb612ee30485ffe978417cf43b9ef 100644 (file)
           " --region ", { "Ref" : "AWS::Region" },
           " || error_exit 'Failed to run cfn-init'\n",
 
+          "# Update boto config (template created by heat-jeos tdl)\n",
+          "sed -i \"s/__GATEWAY_IP__/",
+          "$(/sbin/ip route | grep \"^default\" | awk '{print $3}')/\"",
+          " /etc/boto.cfg \n",
+
           "# Setup MySQL root password and create a user\n",
           "mysqladmin -u root password '", { "Ref" : "DBRootPassword" },
           "' || error_exit 'Failed to initialize root password'\n",