
When deploying with tls enabled in public endpoints, ansible modules fails due SSL certificates are self-signed. This change adds a new variable to allow customization on which endpoints ansible should connect. Defaults to admin because admin auth parameters defaults to admin endpoint. Change-Id: Ic3ed58cf9c9579cae08a11bbfe6fce983b5a9cbc Closes-Bug: #1720995
24 lines
973 B
YAML
24 lines
973 B
YAML
---
|
|
- name: Creating admin project, user, role, service, and endpoint
|
|
command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }} admin {{ keystone_admin_url }} {{ keystone_internal_url }} {{ keystone_public_url }} {{ item }}
|
|
register: keystone_bootstrap
|
|
changed_when: (keystone_bootstrap.stdout | from_json).changed
|
|
failed_when: (keystone_bootstrap.stdout | from_json).failed
|
|
run_once: True
|
|
with_items: "{{ multiple_regions_names }}"
|
|
|
|
- name: Creating default user role
|
|
kolla_toolbox:
|
|
module_name: "os_keystone_role"
|
|
module_args:
|
|
name: "{{ keystone_default_user_role }}"
|
|
auth: "{{ '{{ openstack_keystone_auth }}' }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
module_extra_vars:
|
|
openstack_keystone_auth: "{{ openstack_keystone_auth }}"
|
|
register: default_role
|
|
until: default_role|success
|
|
retries: 10
|
|
delay: 5
|
|
run_once: True
|