kolla-ansible/ansible/roles/ceilometer/tasks/bootstrap_service.yml
caoyuan e4087f384b Remove the ceilometer api and move bootstrap into notification
since the ceilometer-api is marked as deprecated and useless, it should
be remove from kolla, but bootstrap action is need, so move it into
notification is a good choice.
refer to https://github.com/openstack/kolla-ansible/blob/master/releasenotes/notes/remove-ceilometer-useless-service-4e210ddc1c48ac48.yaml#L4

Depends_on: Iea0a46aead14e238fe102d4127b7774dbc2be0e4

Change-Id: Ie8b69e2a0125ea08bb0561991e8e5047bfe47910
2017-11-01 04:22:32 +00:00

21 lines
665 B
YAML

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