kolla-ansible/ansible/roles/senlin/tasks/bootstrap_service.yml
caoyuan 927c89571f Optimize reconfiguration for senlin
Change-Id: I6516db6e1cb0ccd3de6c525e686e041619f83a36
Partially-implements: blueprint better-reconfigure
2017-01-22 14:38:51 +00:00

20 lines
546 B
YAML

---
- name: Running Senlin bootstrap container
vars:
senlin_api: "{{ senlin_services['senlin-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ senlin_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_senlin"
restart_policy: "never"
volumes: "{{ senlin_api.volumes }}"
run_once: True
delegate_to: "{{ groups[senlin_api.group][0] }}"