Adjust cfn-init to not use -f option

Fixes issue #75 for WordPress_2_Instances_With_EBS_Volume.template

Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-04-16 16:33:45 -07:00
parent 71f884272a
commit 162826f9d7

View File

@ -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"
]]}}
}