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:
parent
f9ff68b48d
commit
1804ec25cb
@ -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, },
|
||||
|
@ -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',
|
||||
|
@ -41,7 +41,7 @@ class packstack::provision ()
|
||||
|
||||
keystone_user_role { "${username}@${project_name}":
|
||||
ensure => present,
|
||||
roles => ['_member_'],
|
||||
roles => ['member'],
|
||||
}
|
||||
|
||||
## Neutron
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user