Merge "Support service tokens"

This commit is contained in:
Zuul 2022-06-16 12:29:37 +00:00 committed by Gerrit Code Review
commit 7f2334c785
3 changed files with 11 additions and 2 deletions

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