diff options
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/bootstrap.yml | 5 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/bootstrap.yml | 6 | ||||
| -rw-r--r-- | ansible/roles/keystone/templates/wsgi-keystone.conf.j2 | 8 |
3 files changed, 12 insertions, 7 deletions
diff --git a/ansible/roles/bootstrap.yml b/ansible/roles/bootstrap.yml index cb5bfd7fd..c5a7e7a62 100644 --- a/ansible/roles/bootstrap.yml +++ b/ansible/roles/bootstrap.yml @@ -25,6 +25,11 @@ run_once: True when: database|changed +# https://github.com/ansible/ansible-modules-core/pull/1031 +- name: Waiting for bootstrap container to exit + command: docker wait "{{ container_name }}" + when: database|changed + - name: Cleaning up boostrap container docker: name: "{{ container_name }}" diff --git a/ansible/roles/keystone/tasks/bootstrap.yml b/ansible/roles/keystone/tasks/bootstrap.yml index c78e9347f..a753ce01c 100644 --- a/ansible/roles/keystone/tasks/bootstrap.yml +++ b/ansible/roles/keystone/tasks/bootstrap.yml @@ -4,7 +4,7 @@ # initialization does not successfully finish - include: ../../bootstrap.yml vars: - container_detach: False + container_detach: "False" container_environment: KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" @@ -13,8 +13,8 @@ PUBLIC_URL: "http://{{ kolla_external_address }}:{{ keystone_public_port }}/v2.0" INTERNAL_URL: "http://{{ kolla_internal_address }}:{{ keystone_public_port }}/v2.0" ADMIN_URL: "http://{{ kolla_internal_address }}:{{ keystone_admin_port }}/v2.0" - OS_TOKEN: "{{ keystone_admin_token }}" - OS_URL: "http://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_admin_port }}/v2.0" + OS_SERVICE_TOKEN: "{{ keystone_admin_token }}" + OS_SERVICE_ENDPOINT: "http://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_admin_port }}/v2.0" container_image: "{{ docker_keystone_image_full }}" container_name: "bootstrap_keystone" container_restart_policy: "no" diff --git a/ansible/roles/keystone/templates/wsgi-keystone.conf.j2 b/ansible/roles/keystone/templates/wsgi-keystone.conf.j2 index 71180002f..7287e4b46 100644 --- a/ansible/roles/keystone/templates/wsgi-keystone.conf.j2 +++ b/ansible/roles/keystone/templates/wsgi-keystone.conf.j2 @@ -10,8 +10,8 @@ Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr <IfVersion >= 2.4> ErrorLogFormat "%{cu}t %M" </IfVersion> - ErrorLog /var/log/keystone/keystone.log - CustomLog /var/log/keystone/keystone_access.log combined + ErrorLog /var/log/httpd/keystone.log + CustomLog /var/log/httpd/keystone_access.log combined </VirtualHost> <VirtualHost *:{{ keystone_admin_port }}> @@ -23,6 +23,6 @@ Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr <IfVersion >= 2.4> ErrorLogFormat "%{cu}t %M" </IfVersion> - ErrorLog /var/log/keystone/keystone.log - CustomLog /var/log/keystone/keystone_access.log combined + ErrorLog /var/log/httpd/keystone.log + CustomLog /var/log/httpd/keystone_access.log combined </VirtualHost> |
