Skip to content

Commit d282c34

Browse files
authored
Add support for InfiniBand interfaces to NHC (#821)
1 parent 93ea6bf commit d282c34

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ansible/roles/nhc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ When the `ansible/site.yml` playbook is run this will automatically:
3737

3838
- Filesystem mounts
3939
- Ethernet interfaces
40+
- InfiniBand interfaces
4041

4142
See `/etc/nhc/nhc.conf` on a compute node for the full configuration.
4243

ansible/roles/nhc/templates/nhc.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,10 @@
1616
{{ ansible_fqdn }} || check_hw_eth {{ iface }}
1717
{% endfor %}
1818

19+
## InfiniBand interface checks
20+
{% for iface in ansible_interfaces | select('match', 'ib') %}
21+
{{ ansible_fqdn }} || check_hw_ib {{ (ansible_facts[iface]['speed'] / 1000) | int }} {{ iface }}
22+
{% endfor %}
23+
1924
## Site-specific checks
2025
{{ nhc_config_extra }}

0 commit comments

Comments
 (0)