kolla-ansible/ansible/roles/monasca/tasks/bootstrap_service.yml
Doug Szumski 4c0656e10f Use alembic migrations to bootstrap Monasca database
Alembic uses the monasca-agent config file for the DB
credentials. These are therefore no longer required.

Partially-Implements: blueprint monasca-roles
Change-Id: Id076e7a0b838888314159dd9e76697f89adecb5e
2018-09-19 17:52:23 +01:00

21 lines
569 B
YAML

---
- name: Running monasca bootstrap container
vars:
monasca_api: "{{ monasca_services['monasca-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ monasca_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_monasca"
restart_policy: "never"
volumes: "{{ monasca_api.volumes }}"
run_once: True
delegate_to: "{{ groups[monasca_api.group][0] }}"