Support service tokens

Implement support for service_tokens. For that we convert
role_name to be a list along with renaming corresponding variable.
Additionally service_type is defined now for keystone_authtoken which
enables to validate tokens with restricted access rules
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/845690
Change-Id: I04b22722b32b6dc8b1dc95e18c3fe96ad17e51ac
This commit is contained in:
Dmitriy Rabotyagov
2022年06月15日 11:08:48 +02:00
parent cf66cd365c
commit c36fdaa960

View File

@@ -190,7 +190,12 @@ nova_service_project_name: "service"
nova_service_project_domain_id:default
nova_service_user_domain_id:default
nova_service_user_name:"nova"
nova_service_role_name:"admin"
nova_service_role_names:
- admin
- service
nova_service_token_roles:
- service
nova_service_token_roles_required:"{{ openstack_service_token_roles_required | default(True) }}"
## Keystone authentication middleware
nova_keystone_auth_plugin:password

View File

@@ -185,7 +185,7 @@
_service_users:
- name:"{{ nova_service_user_name }}"
password:"{{ nova_service_password }}"
role:"{{ nova_service_role_name }}"
role:"{{ nova_service_role_names }}"
_service_endpoints:
- service:"{{ nova_service_name }}"
interface:"public"

View File

@@ -190,6 +190,10 @@ username = {{ nova_service_user_name }}
password = {{ nova_service_password }}
region_name = {{ keystone_service_region }}
service_token_roles_required = {{ nova_service_token_roles_required | bool }}
service_token_roles = {{ nova_service_token_roles | join(',') }}
service_type = {{ nova_service_type }}
memcached_servers = {{ memcached_servers }}
token_cache_time = 300
Reference in New Issue
openstack/openstack-ansible-os_nova
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.