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:
Clark Boylan
2013-01-31 13:35:24 -08:00
committed by Jenkins
parent def0a448ad
commit 49cef46ca8

View File

@@ -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'],
],
}
}