kolla-ansible/ansible/roles/blazar/tasks/bootstrap_service.yml
wu.chunyang 8da9379269 dev mode: Add support for blazar
Provide support for kolla dev mode in blazar. When
'kolla_dev_mode' or 'blazar_dev_mode' variables are
enabled, source code of blazar project will be  cloned
and mounted automatically

Partially implements: blueprint mount-sources

Change-Id: I50c5eb97be1123b76b1d42fbb25a0ecbaa2c1a44
2018-06-26 09:08:53 +00:00

21 lines
588 B
YAML

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