From 162826f9d713a8116fbfe832a3e3bc7380cdb4c7 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 16 Apr 2012 16:33:45 -0700 Subject: [PATCH] Adjust cfn-init to not use -f option Fixes issue #75 for WordPress_2_Instances_With_EBS_Volume.template Signed-off-by: Steven Dake --- templates/WordPress_2_Instances_With_EBS_Volume.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/WordPress_2_Instances_With_EBS_Volume.template b/templates/WordPress_2_Instances_With_EBS_Volume.template index a3b65be4..73c4247d 100644 --- a/templates/WordPress_2_Instances_With_EBS_Volume.template +++ b/templates/WordPress_2_Instances_With_EBS_Volume.template @@ -127,7 +127,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", "# Wait for the volume to appear\n", "while [ ! -e /dev/vdb ]; do echo Waiting for volume to attach; sleep 1; done\n", @@ -193,7 +193,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" : [ "WikiDatabase", "PublicIp" ]}, "/ /usr/share/wordpress/wp-config.php\n" ]]}} } -- 2.45.2