kolla-ansible/ansible/roles/panko/tasks/bootstrap_service.yml
Mauricio Lima edb842e10a Optimize reconfiguration for panko
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Change-Id: I9ee4345b3cd5bdeda859fda07f972b80f3e20689
Partially-implements: blueprint better-reconfigure
2017-01-24 13:21:04 +00:00

21 lines
593 B
YAML

---
- name: Running panko bootstrap container
vars:
panko_api: "{{ panko_services['panko-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
PANKO_DATABASE_TYPE: "{{ panko_database_type }}"
image: "{{ panko_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_panko"
restart_policy: "never"
volumes: "{{ panko_api.volumes }}"
run_once: True
delegate_to: "{{ groups[panko_api.group][0] }}"