Skip to content

Commit f3455ae

Browse files
committed
fix(mev): add temperature
Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
1 parent 1dbbebc commit f3455ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ansible/monitoring.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@
6060
name: requests
6161
version: "<2.32"
6262

63+
- name: Intel | Set cron job to get imc temperature every 5 minutes
64+
ansible.builtin.cron:
65+
name: "mev imc temperature"
66+
minute: "*/5"
67+
job: "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=3 root@192.168.0.1 iset-cli get-temperature > /run/mev_imc_temperature.json"
68+
69+
- name: Intel | Add additional mount for mev
70+
ansible.builtin.set_fact:
71+
telegraf_mounts: "{{ telegraf_mounts + [{'type': 'bind', 'source': '/run/mev_imc_temperature.json', 'target': '/run/mev_imc_temperature.json', 'read_only': true}] }}"
72+
6373
- name: Print the list of mounts for each host
6474
ansible.builtin.debug:
6575
var: telegraf_mounts

0 commit comments

Comments
 (0)