kolla-ansible/ansible/roles/manila/tasks/bootstrap_service.yml
caoyuan be3dc2f767 Provide support for manila dev mode in kolla
Add a possibility to mount sources as volumes to containers,
in "more than documentation" way. That will let us to use kolla
as a replacement for devstack.

Partially implements: blueprint mount-sources

Change-Id: I4fe7bf54ad6aaeca75e1b56172a11bb6e00b1539
2018-06-25 03:08:00 +00:00

21 lines
588 B
YAML

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