56af4ef202
Added ansible role to deploy telegraf Roll out telegraf to all nodes Introduce parameter to toggle deployment of performance monitoring Co-Authored-By: zhubingbing <zhubingbing10@gmail.com> Change-Id: Ia09b20ce65bf557c1a1030eda99df5cc88debd01 Partially-Implements: Blueprint performance-monitoring
27 lines
690 B
YAML
27 lines
690 B
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
with_items:
|
|
- "telegraf"
|
|
- "telegraf/config"
|
|
|
|
- name: Copying over default config.json files
|
|
template:
|
|
src: "telegraf.json.j2"
|
|
dest: "{{ node_config_directory }}/telegraf/config.json"
|
|
|
|
- name: Copying over telegraf config file
|
|
template:
|
|
src: "telegraf.conf.j2"
|
|
dest: "{{ node_config_directory }}/telegraf/telegraf.conf"
|
|
|
|
- name: Copying over telegraf plugin files
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "{{ node_config_directory }}/telegraf/config"
|
|
with_fileglob:
|
|
- "{{ role_path }}/templates/config/*.conf"
|