Add admin users

Zanata allows you to specify a comma-separated list of which users
have admin privileges in its standalone.xml config. Configure the
users so we can login using OpenID and see the admin interface.

Change-Id: I9db5ae002fdb6ccb541295fa3a6a7282eb826e6a
This commit is contained in:
stephane 2015-04-10 11:12:11 -07:00
parent 116dceb5b4
commit 2f9ebc5624
2 changed files with 3 additions and 0 deletions

View File

@ -741,6 +741,7 @@ node 'ask.openstack.org' {
node 'translate-dev.openstack.org' { node 'translate-dev.openstack.org' {
class { 'openstack_project::translate_dev': class { 'openstack_project::translate_dev':
sysadmins => hiera('sysadmins', []), sysadmins => hiera('sysadmins', []),
admin_users => 'lyz,stephane',
openid_url => 'https://openstackid-dev.openstack.org', openid_url => 'https://openstackid-dev.openstack.org',
listeners => ['ajp'], listeners => ['ajp'],
mysql_host => hiera('translate_dev_mysql_host', 'localhost'), mysql_host => hiera('translate_dev_mysql_host', 'localhost'),

View File

@ -19,6 +19,7 @@ class openstack_project::translate_dev(
$mysql_port = '3306', $mysql_port = '3306',
$mysql_user = 'zanata', $mysql_user = 'zanata',
$mysql_password, $mysql_password,
$admin_users = '',
$sysadmins = [], $sysadmins = [],
$openid_url = '', $openid_url = '',
$vhost_name = $::fqdn, $vhost_name = $::fqdn,
@ -43,6 +44,7 @@ class openstack_project::translate_dev(
zanata_db_password => $mysql_password, zanata_db_password => $mysql_password,
zanata_openid_provider_url => $openid_url, zanata_openid_provider_url => $openid_url,
zanata_listeners => $listeners, zanata_listeners => $listeners,
zanata_admin_users => $admin_users,
require => [ require => [
Class['openstack_project::server'] Class['openstack_project::server']
], ],