kolla-ansible/ansible/roles/keystone/tasks/bootstrap_service.yml
SamYaple 6d8959a962 Update all bootstraps to use Label
Add bootstrap label to all bootstrap containers to ensure that when
the a new container is launched a difference is seen between it and
the bootstrap container since we cannot rely on ENV variables for
this. This only affects mariadb at this stage, but it is needed to
ensure rabbitmq works when we switch to named volumes.

Change-Id: Ia022af26212d2e5445c06149848831037a508407
Closes-Bug: #1538136
2016-01-28 20:26:41 +00:00

18 lines
535 B
YAML

---
- name: Running Keystone bootstrap container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ keystone_image_full }}"
labels:
BOOTSTRAP:
name: "bootstrap_keystone"
restart_policy: "never"
volumes: "{{ node_config_directory }}/keystone/:{{ container_config_directory }}/:ro"
run_once: True
delegate_to: "{{ groups['keystone'][0] }}"