Files
kolla-ansible/ansible/roles/keystone/tasks/bootstrap.yml
Sam Yaple 4c4181d54a Fix permissions on log directory for keystone
Additionally fixed bootstrap issue caused by an ansible bug in some
versions of the docker module.

Closes-Bug: #1472270
Change-Id: Ia5a370db5ab7690854afcd63492ba7dbbea29835
2015-07-08 09:35:33 +00:00

23 lines
1.2 KiB
YAML

---
# "detach: False" ensures we will be able to wait until the database bootstrap
# is finished. We can also check the exit code and catch errors if the database
# initialization does not successfully finish
- include: ../../bootstrap.yml
vars:
container_detach: "False"
container_environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
KEYSTONE_ADMIN_PASSWORD: "{{ keystone_admin_password }}"
REGION_NAME: "{{ openstack_region_name }}"
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_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"
container_volumes:
- "{{ node_config_directory }}/keystone/:/opt/kolla/keystone/:ro"