metrics : unification de la conf telegraf
Co-authored-by: aouvrard
This commit is contained in:
@@ -50,18 +50,12 @@
|
||||
prompt: "Vers quel influxdb/grafana souhaitez vous envoyer les metrics?\n1- Néréide\n2- Champs-Libres\n"
|
||||
register: prompt_input
|
||||
|
||||
- name: Application de la conf Telegraf Néréide
|
||||
- name: Application de la conf Telegraf
|
||||
vars:
|
||||
outputnrd: prompt_input.user_input == "1"
|
||||
outputcl: prompt_input.user_input == "2"
|
||||
template:
|
||||
src: ../templates/telegraf-general-nrd.conf.j2
|
||||
src: ../templates/telegraf-general.conf.j2
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
notify:
|
||||
- restart telegraf
|
||||
when: prompt_input.user_input == "1"
|
||||
|
||||
- name: Application de la conf Telegraf Champs-Libre
|
||||
template:
|
||||
src: ../templates/telegraf-general-cl.conf.j2
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
notify:
|
||||
- restart telegraf
|
||||
when: prompt_input.user_input == "2"
|
||||
- restart telegraf
|
||||
Reference in New Issue
Block a user