From 318f233c54c4f2046052a4a70411600e53aa847f Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 10 Oct 2012 10:03:11 +0100 Subject: [PATCH] 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 --- templates/WordPress_Single_Instance_With_HA.template | 5 +++++ templates/WordPress_Single_Instance_With_IHA.template | 5 +++++ 2 files changed, 10 insertions(+) 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", -- 2.45.2