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

Partially implements: blueprint mount-sources

Change-Id: I9ccd395d076f9cc1ad4b51af9d22ba8b17fac1bc
2018-06-15 00:08:33 +00:00

21 lines
588 B
YAML

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