Make the openstack_citest postgres user superuser.
Make the openstack_citest postgres user (added to Jenkins slaves' postgres servers a postgres superuser). This will hopefully allow the nova postgres tests to run. Also, remove the database_grant that was previously being performed. This was unnecessary as the postgresql::db['openstack_citest'] define was taking care of the grant. Change-Id: Ib43a4acd19f8460de7ddf9f593b0dcd73fb6467c Reviewed-on: https://review.openstack.org/20947 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
@@ -201,18 +201,19 @@ class jenkins::slave(
|
||||
require => Class['postgresql::params'],
|
||||
}
|
||||
|
||||
postgresql::database_user { 'openstack_citest':
|
||||
password_hash => 'openstack_citest',
|
||||
superuser => true,
|
||||
}
|
||||
|
||||
postgresql::db { 'openstack_citest':
|
||||
user => 'openstack_citest',
|
||||
password => 'openstack_citest',
|
||||
grant => 'all',
|
||||
require => Class['postgresql::server'],
|
||||
}
|
||||
|
||||
postgresql::database_grant { 'grant_openstack_citest_privs':
|
||||
privilege => 'ALL',
|
||||
db => 'openstack_citest',
|
||||
role => 'openstack_citest',
|
||||
require => Postgresql::Db['openstack_citest'],
|
||||
require => [
|
||||
Class['postgresql::server'],
|
||||
Postgresql::Database_user['openstack_citest'],
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user