e610a73e98
We don't add extra volumes support for all services in patch [1].
In order to unify the management of the volume, so we need add extra volumes
support for these services.
[1] 12ff28a693
Change-Id: Ie148accdd8e6c60df6b521d55bda12b850c0d255
Partially-Implements: blueprint support-extra-volumes
Signed-off-by: ZijianGuo <guozijn@gmail.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 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_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-telegraf"
|
|
telegraf_tag: "{{ openstack_release }}"
|
|
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"
|
|
- "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"
|