]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix the sql in the rails template (didn't work with the mysql in f16)
authorAngus Salkeld <asalkeld@redhat.com>
Fri, 4 May 2012 01:21:55 +0000 (11:21 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Fri, 4 May 2012 01:22:20 +0000 (11:22 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
templates/Rails_Single_Instance.template

index 6149ad6a14e8e4c35b549eb9006adfbee52d15cc..6c5e1c0f776aa666a85869929d2a0e9025568ebc 100644 (file)
             "files" : {
               "/tmp/setup.mysql" : {
                 "content" : { "Fn::Join" : ["", [
-                  "CREATE USER '", { "Ref" : "DBUsername" }, "'@'localhost' IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
-                  "GRANT ALL ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost';\n",
-                  "FLUSH PRIVILEGES;\n"
+                 "CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
+                 "GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost'\n",
+                 "IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
+                  "FLUSH PRIVILEGES;\n",
+                 "EXIT\n"
                   ]]},
                 "mode"  : "000644",
                 "owner" : "root",