59a0ddcd01
Provide support for kolla dev mode in designate. When 'kolla_dev_mode' or 'designate_dev_mode' variables are enabled, source code of designate project is cloned and bindmounted. Partially implements: blueprint mount-sources Co-Authored-By: zhulingjie <easyzlj@gmail.com> Change-Id: Ib23fbd3d5ebc7e3ac372e0db1e0048d333eb95c0
21 lines
632 B
YAML
21 lines
632 B
YAML
---
|
|
- name: Running Designate bootstrap container
|
|
vars:
|
|
designate_central: "{{ designate_services['designate-central'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
detach: False
|
|
environment:
|
|
KOLLA_BOOTSTRAP:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
image: "{{ designate_central.image }}"
|
|
labels:
|
|
BOOTSTRAP:
|
|
name: "bootstrap_designate"
|
|
restart_policy: "never"
|
|
volumes: "{{ designate_central.volumes|reject('equalto', '')|list }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups[designate_central.group][0] }}"
|