Bootstrap Keystone with versionless endpoints

Change-Id: Id88657f2abb4bd0741751a6cf035d93ad62bc310
Depends-On: I8fce922e2907584138a132f37887f227eabe9abe
Partial-Bug: #1688320
This commit is contained in:
ArchiFleKs
2017-05-05 11:18:11 +02:00
parent 16e93acc66
commit c0b5e8c90a
2 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
---
upgrade:
- The keystone endpoints now have versionless URLs.
Any existing endpoints will be updated.

View File

@@ -38,9 +38,9 @@
--bootstrap-role-name {{ keystone_role_name }} \ --bootstrap-role-name {{ keystone_role_name }} \
--bootstrap-service-name {{ keystone_service_name }} \ --bootstrap-service-name {{ keystone_service_name }} \
--bootstrap-region-id {{ keystone_service_region }} \ --bootstrap-region-id {{ keystone_service_region }} \
--bootstrap-admin-url {{ keystone_service_adminurl }} \ --bootstrap-admin-url {{ keystone_service_adminuri }} \
--bootstrap-public-url {{ keystone_service_publicurl }} \ --bootstrap-public-url {{ keystone_service_publicuri }} \
--bootstrap-internal-url {{ keystone_service_internalurl }} --bootstrap-internal-url {{ keystone_service_internaluri }}
become: yes become: yes
become_user: "{{ keystone_system_user_name }}" become_user: "{{ keystone_system_user_name }}"
changed_when: false changed_when: false
@@ -136,3 +136,28 @@
until: add_service|success until: add_service|success
retries: 5 retries: 5
delay: 10 delay: 10
# Create an endpoint
- name: Update Keystone endpoint
keystone:
command: "ensure_endpoint"
login_user: "{{ keystone_admin_user_name }}"
login_password: "{{ keystone_auth_admin_password }}"
login_project_name: "{{ keystone_admin_tenant_name }}"
endpoint: "{{ keystone_service_adminuri_proto }}://{{ ansible_host }}:{{ keystone_admin_port }}/v3"
ignore_catalog: True
region_name: "{{ keystone_service_region }}"
service_name: "{{ keystone_service_name }}"
service_type: "{{ keystone_service_type }}"
insecure: "{{ keystone_service_adminuri_insecure }}"
endpoint_list:
- url: "{{ keystone_service_publicuri }}"
interface: "public"
- url: "{{ keystone_service_internaluri }}"
interface: "internal"
- url: "{{ keystone_service_adminuri }}"
interface: "admin"
register: add_service
until: add_service|success
retries: 5
delay: 10