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:
parent
aa8030e651
commit
4450b86d1f
@ -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"]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user