From: Steven Hardy Date: Wed, 10 Oct 2012 09:03:11 +0000 (+0100) Subject: heat templates : Add boto config to HA templates X-Git-Tag: 2014.1~1315^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=318f233c54c4f2046052a4a70411600e53aa847f;p=openstack-build%2Fheat-build.git heat templates : Add boto config to HA templates 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 Change-Id: I8670f6774834e9f41870240496fe74728306cf17 --- diff --git a/templates/WordPress_Single_Instance_With_HA.template b/templates/WordPress_Single_Instance_With_HA.template index a3c864ce..02726ec6 100644 --- a/templates/WordPress_Single_Instance_With_HA.template +++ b/templates/WordPress_Single_Instance_With_HA.template @@ -246,6 +246,11 @@ " --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", diff --git a/templates/WordPress_Single_Instance_With_IHA.template b/templates/WordPress_Single_Instance_With_IHA.template index 1159c1a3..5ca10983 100644 --- a/templates/WordPress_Single_Instance_With_IHA.template +++ b/templates/WordPress_Single_Instance_With_IHA.template @@ -187,6 +187,11 @@ " --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",