kolla-ansible/ansible/roles/cloudkitty/tasks/bootstrap_service.yml
caoyuan 3a34dfa083 Provide support for cloudkitty 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
Co-Authored-By: ZhijunWei <wzj334965317@outlook.com>

Change-Id: I8ccfb3c96e642d4b121809236aab0180ac49e3cc
2018-06-25 03:10:14 +00:00

21 lines
620 B
YAML

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