
The default config for collectd is very different between OS distro. For example, in ubuntu, collectd read config from "/etc/collect/collect.conf.d". But in centos, collectd read config from "/etc/collect.d" We need to provide a universal collectd template to make it convenient for different distros. Change-Id: Ib82fcbb923cb32dbafce04e1e639a400d59a4365 Closes-Bug: #1652246
15 lines
445 B
YAML
15 lines
445 B
YAML
---
|
|
- name: Starting collectd container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ collectd_image_full }}"
|
|
name: "collectd"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/collectd/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/sys/:/sys/:ro"
|
|
- "/dev/:/dev/:ro"
|