8da9379269
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
21 lines
588 B
YAML
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] }}"
|