kolla-ansible/ansible/roles/mistral/tasks/bootstrap_service.yml
caoyuan c3c7b4827e dev mode: Add support for mistral
Provide support for kolla dev mode in mistral. When
'kolla_dev_mode' or 'mistral_dev_mode' variables are
enabled, source code of mistral project is cloned
and bind mounted.

Partially implements: blueprint mount-sources
Co-Authored-By: chenqiaomin <chen.qiaomin@99cloud.net>

Change-Id: I6e5f9b1a6b35dbb672905987e715cae4bf10af7f
2018-05-12 22:20:41 +08:00

20 lines
581 B
YAML

---
- name: Running Mistral bootstrap container
vars:
mistral_api: "{{ mistral_services['mistral-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ mistral_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_mistral"
restart_policy: "never"
volumes: "{{ mistral_api.volumes|reject('equalto', '')|list }}"
run_once: True
delegate_to: "{{ groups[mistral_api.group][0] }}"