]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix the HA template (sed the username/password)
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 31 May 2012 00:48:35 +0000 (10:48 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 31 May 2012 04:28:45 +0000 (14:28 +1000)
Change-Id: I835a9f6d2a9abfdeb5af8fb703c8abae5afae2d1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
templates/WordPress_Single_Instance_With_HA.template

index 4a43cd45c786bd792988862841e23e4a9f513ea1..71be20ad89b980a0ea41b9a13d1d15b3da6377f2 100644 (file)
           "mysql -u root --password='", { "Ref" : "DBRootPassword" },
           "' < /tmp/setup.mysql || error_exit 'Failed to create database.'\n",
 
+          "sed --in-place --e s/database_name_here/", { "Ref" : "DBName" },
+          "/ --e s/username_here/", { "Ref" : "DBUsername" },
+          "/ --e s/password_here/", { "Ref" : "DBPassword" },
+          "/ /usr/share/wordpress/wp-config.php\n",
+
           "# install cfn-hup crontab\n",
           "crontab /tmp/cfn-hup-crontab.txt\n",