keystone roles container name variable

keystone and keystone_fernet container name variable is fixed
in some places, but in the defaults directory, keystone
and keystone_fernet container_name variable is variable.
If the keystone and keystone_fernet container_name variable is
changed during deployment, it will not be assigned to keystone
and keystone_fernet, but a fixed 'keystone' and 'keystone_fernet' name.

Change-Id: Ifc8ac69e6abc4586f0e4fd820b9022aea9f76396
This commit is contained in:
linpeiwen 2020-03-26 23:10:06 -04:00 committed by LinPeiWen
parent c9ca7e5529
commit 5659177026
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
- name: Run key distribution - name: Run key distribution
become: true become: true
command: docker exec -t keystone_fernet /usr/bin/fernet-push.sh command: docker exec -t "{{ keystone_services['keystone-fernet']['container_name'] }}" /usr/bin/fernet-push.sh
run_once: True run_once: True
delegate_to: >- delegate_to: >-
{% if groups['keystone_fernet_running'] is defined -%} {% if groups['keystone_fernet_running'] is defined -%}

View File

@ -1,7 +1,7 @@
--- ---
- name: Creating admin project, user, role, service, and endpoint - name: Creating admin project, user, role, service, and endpoint
become: true become: true
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 }} command: docker exec "{{ keystone_services['keystone']['container_name'] }}" 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 register: keystone_bootstrap
changed_when: (keystone_bootstrap.stdout | from_json).changed changed_when: (keystone_bootstrap.stdout | from_json).changed
failed_when: (keystone_bootstrap.stdout | from_json).failed failed_when: (keystone_bootstrap.stdout | from_json).failed