---
project_name: "ceilometer"

ceilometer_services:
  ceilometer-notification:
    container_name: ceilometer_notification
    group: ceilometer-notification
    enabled: True
    image: "{{ ceilometer_notification_image_full }}"
    volumes:
      - "{{ node_config_directory }}/ceilometer-notification/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "kolla_logs:/var/log/kolla/"
      - "{{ kolla_dev_repos_directory ~ '/ceilometer/ceilometer:/var/lib/kolla/venv/lib/python2.7/site-packages/ceilometer' if ceilometer_dev_mode | bool else '' }}"
    dimensions: "{{ ceilometer_notification_dimensions }}"
  ceilometer-central:
    container_name: ceilometer_central
    group: ceilometer-central
    enabled: True
    image: "{{ ceilometer_central_image_full }}"
    volumes:
      - "{{ node_config_directory }}/ceilometer-central/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "ceilometer:/var/lib/ceilometer/"
      - "kolla_logs:/var/log/kolla/"
      - "{{ kolla_dev_repos_directory ~ '/ceilometer/ceilometer:/var/lib/kolla/venv/lib/python2.7/site-packages/ceilometer' if ceilometer_dev_mode | bool else '' }}"
    dimensions: "{{ ceilometer_central_dimensions }}"
  ceilometer-compute:
    container_name: ceilometer_compute
    group: ceilometer-compute
    enabled: True
    privileged: True
    image: "{{ ceilometer_compute_image_full }}"
    volumes:
      - "{{ node_config_directory }}/ceilometer-compute/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "/run/:/run/:shared"
      - "ceilometer:/var/lib/ceilometer/"
      - "kolla_logs:/var/log/kolla/"
      - "nova_libvirt:/var/lib/libvirt"
      - "{{ kolla_dev_repos_directory ~ '/ceilometer/ceilometer:/var/lib/kolla/venv/lib/python2.7/site-packages/ceilometer' if ceilometer_dev_mode | bool else '' }}"
    dimensions: "{{ ceilometer_compute_dimensions }}"


####################
# Docker
####################
ceilometer_install_type: "{{ kolla_install_type }}"
ceilometer_tag: "{{ openstack_release }}"

ceilometer_notification_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceilometer_install_type }}-ceilometer-notification"
ceilometer_notification_tag: "{{ ceilometer_tag }}"
ceilometer_notification_image_full: "{{ ceilometer_notification_image }}:{{ ceilometer_notification_tag }}"

ceilometer_central_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceilometer_install_type }}-ceilometer-central"
ceilometer_central_tag: "{{ ceilometer_tag }}"
ceilometer_central_image_full: "{{ ceilometer_central_image }}:{{ ceilometer_central_tag }}"

ceilometer_compute_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceilometer_install_type }}-ceilometer-compute"
ceilometer_compute_tag: "{{ ceilometer_tag }}"
ceilometer_compute_image_full: "{{ ceilometer_compute_image }}:{{ ceilometer_compute_tag }}"

ceilometer_notification_dimensions: "{{ default_container_dimensions }}"
ceilometer_central_dimensions: "{{ default_container_dimensions }}"
ceilometer_compute_dimensions: "{{ default_container_dimensions }}"

####################
# OpenStack
####################
ceilometer_logging_debug: "{{ openstack_logging_debug }}"

ceilometer_keystone_user: "ceilometer"

openstack_ceilometer_auth: "{{ openstack_auth }}"


####################
# Kolla
####################
ceilometer_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
ceilometer_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
ceilometer_dev_mode: "{{ kolla_dev_mode }}"
