kolla-ansible/ansible/roles/senlin/tasks/bootstrap_service.yml
Eduardo Gonzalez abf83650a1 Add Senlin Ansible role
Change-Id: Ic941a396b5cd9abfb5e9941218e91b784f8bba0a
Implements: bp senlin-container
2016-09-14 07:20:22 +02:00

21 lines
625 B
YAML

---
- name: Running Senlin bootstrap container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ senlin_api_image_full }}"
labels:
BOOTSTRAP:
name: "bootstrap_senlin"
restart_policy: "never"
volumes:
- "{{ node_config_directory }}/senlin-api/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
run_once: True
delegate_to: "{{ groups['senlin-api'][0] }}"