Don't create database every run.

Change-Id: I524cab78b4f17a60ea7fdc3fd2a6af2ca82ebb51
Reviewed-on: https://review.openstack.org/10964
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Monty Taylor 2012-08-07 09:31:07 -05:00 committed by Jenkins
parent 493c1b9971
commit ce9c4d7c36
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ define lodgeit::site($port, $image="") {
exec { "create_database_${name}":
command => "drizzle --user=root -e \"create database if not exists ${name};\"",
path => "/bin:/usr/bin",
unless => "drizzle --disable-column-names -r --batch -e \"show databases like 'openstack'\" | grep openstack >/dev/null",
require => Service["drizzle"]
}