kolla-ansible/ansible/roles/ceilometer/tasks/bootstrap_service.yml
caoyuan 7ec120aec3 Optimize reconfiguration for ceilometer
Change-Id: I9667e087f3dede751ce80734511e53761f5e9298
Partially-implements: blueprint better-reconfigure
2017-01-24 13:57:38 +00:00

21 lines
643 B
YAML

---
- name: Running Ceilometer bootstrap container
vars:
ceilometer_api: "{{ ceilometer_services['ceilometer-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
CEILOMETER_DATABASE_TYPE: "{{ ceilometer_database_type }}"
image: "{{ ceilometer_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_ceilometer"
restart_policy: "never"
volumes: "{{ ceilometer_api.volumes }}"
run_once: True
delegate_to: "{{ groups[ceilometer_api.group][0] }}"