From 0e94117fa408c25e2e22cacffd2e63e12e6d547d Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 27 Jan 2014 17:08:58 -0800 Subject: [PATCH] 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 --- modules/jenkins/manifests/slave.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/jenkins/manifests/slave.pp b/modules/jenkins/manifests/slave.pp index 596952dc6c..8299d68a10 100644 --- a/modules/jenkins/manifests/slave.pp +++ b/modules/jenkins/manifests/slave.pp @@ -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.