Fix the HA template (sed the username/password)

Change-Id: I835a9f6d2a9abfdeb5af8fb703c8abae5afae2d1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-05-31 10:48:35 +10:00
parent 5f7cf95f26
commit 07d1eb9b78
1 changed files with 5 additions and 0 deletions

View File

@ -239,6 +239,11 @@
"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",