From 71f884272a39b0b6d301ee7f265db753b36ed2d7 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 16 Apr 2012 16:32:09 -0700 Subject: [PATCH] Adjust cfn-init to not take a parameter in the initialization WordPress_2_Instances.template Signed-off-by: Steven Dake --- templates/WordPress_2_Instances.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/WordPress_2_Instances.template b/templates/WordPress_2_Instances.template index ad76be9a0f..5847a6448f 100644 --- a/templates/WordPress_2_Instances.template +++ b/templates/WordPress_2_Instances.template @@ -118,7 +118,7 @@ "KeyName" : { "Ref" : "KeyName" }, "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -v\n", - "/opt/aws/bin/cfn-init -f /var/lib/cloud/data/cfn-init-data\n", + "/opt/aws/bin/cfn-init\n", "# Setup MySQL root password and create a user\n", "mysqladmin -u root password '", { "Ref" : "DBRootPassword" }, "'\n", "cat << EOF | mysql -u root --password='", { "Ref" : "DBRootPassword" }, "'\n", @@ -159,7 +159,7 @@ "KeyName" : { "Ref" : "KeyName" }, "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -v\n", - "/opt/aws/bin/cfn-init -f /var/lib/cloud/data/cfn-init-data\n", + "/opt/aws/bin/cfn-init\n", "sed --in-place --e s/database_name_here/", { "Ref" : "DBName" }, "/ --e s/username_here/", { "Ref" : "DBUsername" }, "/ --e s/password_here/", { "Ref" : "DBPassword" }, "/ --e s/localhost/", { "Fn::GetAtt" : [ "DatabaseServer", "PublicIp" ]}, "/ /usr/share/wordpress/wp-config.php\n" ]]}} }