kolla-ansible/ansible/roles/panko/tasks/bootstrap_service.yml
zhubingbing 3e7ed2c42c add panko role
Change-Id: I515fdcdf6093e9e59dbbdc97221d23ed7f4e0a3d
Partially-Implements: blueprint add-panko-ansible-role
2016-12-15 08:01:50 +00:00

22 lines
675 B
YAML

---
- name: Running panko bootstrap container
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_full }}"
labels:
BOOTSTRAP:
name: "bootstrap_panko"
restart_policy: "never"
volumes:
- "{{ node_config_directory }}/panko-api/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
run_once: True
delegate_to: "{{ groups['panko-api'][0] }}"