146b00efa7
Previously we mounted /etc/timezone if the kolla_base_distro is debian or ubuntu. This would fail prechecks if debian or ubuntu images were deployed on CentOS. While this is not a supported combination, for correctness we should fix the condition to reference the host OS rather than the container OS, since that is where the /etc/timezone file is located. Change-Id: Ifc252ae793e6974356fcdca810b373f362d24ba5 Closes-Bug: #1882553
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
---
|
|
project_name: "telegraf"
|
|
|
|
telegraf_services:
|
|
telegraf:
|
|
container_name: "telegraf"
|
|
image: "{{ telegraf_image_full }}"
|
|
enabled: true
|
|
pid_mode: "host"
|
|
group: "telegraf"
|
|
volumes: "{{ telegraf_default_volumes + telegraf_extra_volumes }}"
|
|
dimensions: "{{ telegraf_dimensions }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
telegraf_install_type: "{{ kolla_install_type }}"
|
|
telegraf_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ telegraf_install_type }}-telegraf"
|
|
telegraf_tag: "{{ openstack_tag }}"
|
|
telegraf_image_full: "{{ telegraf_image }}:{{ telegraf_tag }}"
|
|
telegraf_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
telegraf_default_volumes:
|
|
- "{{ node_config_directory }}/telegraf/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/sys:/rootfs/sys:ro"
|
|
- "/proc:/rootfs/proc:ro"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
telegraf_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
####################
|
|
# Protocols
|
|
####################
|
|
elasticsearch_proto: "http"
|
|
haproxy_proto: "http"
|
|
influxdb_proto: "http"
|
|
rabbitmq_proto: "http"
|
|
mariadb_proto: "tcp"
|
|
outward_rabbitmq_proto: "http"
|