kolla-ansible/ansible/roles/collectd/defaults/main.yml
Dincer Celik 4b5df0d866 Introduce /etc/timezone to Debian/Ubuntu containers
Some services look for /etc/timezone on Debian/Ubuntu, so we should
introduce it to the containers.

In addition, added prechecks for /etc/localtime and /etc/timezone.

Closes-Bug: #1821592
Change-Id: I9fef14643d1bcc7eee9547eb87fa1fb436d8a6b3
2020-04-09 18:53:36 +00:00

38 lines
1.3 KiB
YAML

---
project_name: "collectd"
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_install_type: "{{ kolla_install_type }}"
collectd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ collectd_install_type }}-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 kolla_base_distro in ['debian', 'ubuntu'] 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 }}"