kolla-ansible/ansible/roles/vitrage/tasks/bootstrap_service.yml
chenxing 2d1a1b1df6 Add vitrage ansible role
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com>

Depends-on I7ffb991adbd05275e331401cd73fc84362084ebd
Change-Id: I85afeb5dfce0bf6350a444000bdb885c6fe079c9
Partially-implements: blueprint vitrage-roles
2017-12-18 17:29:32 +08:00

20 lines
554 B
YAML

---
- name: Running Vitrage bootstrap container
vars:
vitrage_api: "{{ vitrage_services['vitrage-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ vitrage_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_vitrage"
restart_policy: "never"
volumes: "{{ vitrage_api.volumes }}"
run_once: True
delegate_to: "{{ groups[vitrage_api.group][0] }}"