Add baremetal DB migration test database.
Fixes bug 1130451 Add a second MySQL DB that the openstack_citest user has permissions to to facilitate baremetal DB migration testing. This is necessary because testr runs changes in parallel so each MySQL test needs individual DB schemas. Long term we should come up with a better way of negotiating DB access but in the short term this is quick and simple. Change-Id: I4ee207bc3c2bf9d5d8c48409c2c611d17225994a Reviewed-on: https://review.openstack.org/22387 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
@@ -175,6 +175,17 @@ class jenkins::slave(
|
||||
],
|
||||
}
|
||||
|
||||
mysql::db { 'openstack_baremetal_citest':
|
||||
user => 'openstack_citest',
|
||||
password => 'openstack_citest',
|
||||
host => 'localhost',
|
||||
grant => ['all'],
|
||||
require => [
|
||||
Class['mysql::server'],
|
||||
Class['mysql::server::account_security'],
|
||||
],
|
||||
}
|
||||
|
||||
$no_postgresql_version = 'Unsupported OS! Please check `postgres_default_version` fact.'
|
||||
if $::postgres_default_version == $no_postgresql_version {
|
||||
# Have a default postgres version if the postgresql module can't decide
|
||||
|
||||
Reference in New Issue
Block a user