Give test mysql user create and drop perms.

Give the openstackci_test Jenkins slave test user permissions to CREATE
and DROP databases. This allows parallel tests to create as many DB
schemas as necessary to run tests without locking in the tests
themselves.

Change-Id: I0466ac8f318b7dc397fac6c16553e284bdb7d707
This commit is contained in:
Clark Boylan 2014-01-27 17:08:58 -08:00
parent eb2723e31d
commit 0e94117fa4
1 changed files with 6 additions and 0 deletions

View File

@ -270,6 +270,12 @@ class jenkins::slave(
require => Database_user['openstack_citest@localhost'],
}
database_grant { 'openstack_citest@localhost':
privileges => ['CREATE', 'DROP'],
provider => 'mysql',
require => Database_user['openstack_citest@localhost'],
}
# The puppetlabs postgres module does not manage the postgres user
# and group for us. Create them here to ensure concat can create
# dirs and files owned by this user and group.