3a34dfa083
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
21 lines
620 B
YAML
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] }}"
|