Replace _member_ role by member role

The member role is now commonly used as one of the default roles
created during bootstrap. Replace the legacy _member_ role by it.

Change-Id: I5d2404e16cce69f1897e3b3e5714e43ab24b7ed1
This commit is contained in:
Takashi Kajinami 2024-07-24 00:52:45 +09:00
parent f9ff68b48d
commit 1804ec25cb
4 changed files with 3 additions and 11 deletions

View File

@ -19,7 +19,6 @@ class packstack::horizon ()
class { 'horizon':
secret_key => lookup('CONFIG_HORIZON_SECRET_KEY'),
keystone_url => lookup('CONFIG_KEYSTONE_PUBLIC_URL'),
keystone_default_role => '_member_',
server_aliases => [lookup('CONFIG_CONTROLLER_HOST'), $facts['networking']['fqdn'], 'localhost'],
allowed_hosts => '*',
hypervisor_options => {'can_set_mount_point' => false, },

View File

@ -46,16 +46,9 @@ class packstack::keystone ()
ssl => $keystone_use_ssl
}
$username = lookup('CONFIG_KEYSTONE_ADMIN_USERNAME')
# Ensure the default _member_ role is present
keystone_role { '_member_':
ensure => present,
}
class { 'keystone::bootstrap':
password => lookup('CONFIG_KEYSTONE_ADMIN_PW'),
username => $username,
username => lookup('CONFIG_KEYSTONE_ADMIN_USERNAME'),
email => lookup('CONFIG_KEYSTONE_ADMIN_EMAIL'),
project_name => 'admin',
role_name => 'admin',

View File

@ -41,7 +41,7 @@ class packstack::provision ()
keystone_user_role { "${username}@${project_name}":
ensure => present,
roles => ['_member_'],
roles => ['member'],
}
## Neutron

View File

@ -106,7 +106,7 @@ class packstack::swift::proxy ()
}
class { 'swift::proxy::keystone':
operator_roles => ['admin', 'SwiftOperator', '_member_'],
operator_roles => ['admin', 'SwiftOperator', 'member'],
}
class { 'swift::proxy::authtoken':