From cdaa25a366245781eac714d81ecc57175ddbc9a8 Mon Sep 17 00:00:00 2001 From: Steve Brasier Date: Fri, 10 Oct 2025 15:32:03 +0100 Subject: [PATCH] add support for InfiniBand interfaces to NHC --- ansible/roles/nhc/README.md | 1 + ansible/roles/nhc/templates/nhc.conf.j2 | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ansible/roles/nhc/README.md b/ansible/roles/nhc/README.md index 689f054a4..def7bffda 100644 --- a/ansible/roles/nhc/README.md +++ b/ansible/roles/nhc/README.md @@ -37,6 +37,7 @@ When the `ansible/site.yml` playbook is run this will automatically: - Filesystem mounts - Ethernet interfaces + - InfiniBand interfaces See `/etc/nhc/nhc.conf` on a compute node for the full configuration. diff --git a/ansible/roles/nhc/templates/nhc.conf.j2 b/ansible/roles/nhc/templates/nhc.conf.j2 index 393af5aaf..5666ce4af 100644 --- a/ansible/roles/nhc/templates/nhc.conf.j2 +++ b/ansible/roles/nhc/templates/nhc.conf.j2 @@ -16,5 +16,10 @@ {{ ansible_fqdn }} || check_hw_eth {{ iface }} {% endfor %} +## InfiniBand interface checks +{% for iface in ansible_interfaces | select('match', 'ib') %} +{{ ansible_fqdn }} || check_hw_ib {{ (ansible_facts[iface]['speed'] / 1000) | int }} {{ iface }} +{% endfor %} + ## Site-specific checks {{ nhc_config_extra }}