Set up opportunistic bare-metal postgres db

Currently only MySQL is being opportunistically tested for bare-metal
migrations. This change configures the Jenkins slaves to have a
postgresql database openstack_baremetal_ci.

Change-Id: Ifb2eb7b1ef15b28a326a7d7eb1f99dc675cc40b6
This commit is contained in:
Joshua Hesketh 2014-02-14 11:48:49 +11:00
parent c5bd6f0fcb
commit 8d9ebffe10
1 changed files with 19 additions and 0 deletions

View File

@ -348,6 +348,25 @@ class jenkins::slave(
refreshonly => true,
subscribe => Postgresql::Server::Db['openstack_citest'],
}
postgresql::server::db { 'openstack_baremetal_citest':
user => 'openstack_citest',
password => postgresql_password('openstack_citest', 'openstack_citest'),
grant => 'all',
require => [
Class['postgresql::server'],
Postgresql::Server::Role['openstack_citest'],
],
}
# Alter the new database giving the test DB user ownership of the DB.
# This is necessary to make the nova unittests run properly.
postgresql_psql { 'ALTER DATABASE openstack_baremetal_citest OWNER TO
openstack_citest':
db => 'postgres',
refreshonly => true,
subscribe => Postgresql::Server::Db['openstack_baremetal_citest'],
}
}
file { '/usr/local/jenkins':