gold plating the WordPress_2_Instances template
Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
6046cb1bdd
commit
20e10f2bf7
@ -121,14 +121,13 @@
|
||||
"/opt/aws/bin/cfn-init -f /var/lib/cloud/data/cfn-init-data\n",
|
||||
"# Setup MySQL root password and create a user\n",
|
||||
"mysqladmin -u root password '", { "Ref" : "DBRootPassword" }, "'\n",
|
||||
"cat >> /tmp/mysql-wordpress-config << EOF\n",
|
||||
"cat << EOF | mysql -u root --password='", { "Ref" : "DBRootPassword" }, "'\n",
|
||||
"CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
|
||||
"GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO \"", { "Ref" : "DBUsername" }, "\"@\"%\"\n",
|
||||
"IDENTIFIED BY \"", { "Ref" : "DBPassword" }, "\";\n",
|
||||
"FLUSH PRIVILEGES;\n",
|
||||
"EXIT\n",
|
||||
"EOF\n",
|
||||
"cat /tmp/mysql-wordpress-config | mysql -u root --password='", { "Ref" : "DBRootPassword" }, "' < /tmp/mysql-wordpress-config\n"
|
||||
"EOF\n"
|
||||
]]}}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user