3e75a33ad4
Change-Id: Ib4b15ed4feac82d8492b1c0f0238a752eac668e6
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
---
|
|
collectd_services:
|
|
collectd:
|
|
container_name: collectd
|
|
group: collectd
|
|
enabled: true
|
|
image: "{{ collectd_image_full }}"
|
|
privileged: True
|
|
volumes: "{{ collectd_default_volumes + collectd_extra_volumes }}"
|
|
dimensions: "{{ collectd_dimensions }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
collectd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/collectd"
|
|
collectd_tag: "{{ openstack_tag }}"
|
|
collectd_image_full: "{{ collectd_image }}:{{ collectd_tag }}"
|
|
|
|
collectd_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
collectd_default_volumes:
|
|
- "{{ node_config_directory }}/collectd/:{{ container_config_directory }}/:ro"
|
|
- "{{ node_config_directory }}/collectd/collectd.conf.d/:/etc/collectd/collectd.conf.d/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/sys/:/sys/:ro"
|
|
- "/dev/:/dev/:ro"
|
|
collectd_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
collectd_logging_debug: "{{ openstack_logging_debug }}"
|