Skip to content

Commit 6a4df08

Browse files
authored
Merge pull request #39 from stackhpc/sriov-debian
Fix sriov MFT dependency installation for Debian
2 parents 72270c9 + 53b9910 commit 6a4df08

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Updates the sriov role to correctly install MFT dependencies when on a
5+
Debian system.

roles/sriov/defaults/main.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sriov_mft_url: https://www.mellanox.com/downloads/MFT/mft-4.23.0-104-x86_64-rpm.
77

88
sriov_mft_tarball: "{{ sriov_mft_url | urlsplit('path') | basename }}"
99

10-
sriov_os_pkgs:
10+
sriov_os_pkgs_rpm:
1111
- gcc
1212
- rpm-build
1313
# -E- Could not find lspci, you may need to install "pciutils" package
@@ -17,6 +17,15 @@ sriov_os_pkgs:
1717
- kernel-devel
1818
- make
1919

20+
sriov_os_pkgs_deb:
21+
- gcc
22+
# -E- Could not find lspci, you may need to install "pciutils" package
23+
- pciutils
24+
# NOTE(wszumski): Assumes running latest kernel. We could include package version with
25+
# output of uname -r, but the packages aren't always available.
26+
- linux-headers-generic
27+
- make
28+
2029
sriov_restart_handler: reboot
2130

2231
sriov_numvfs: 8

roles/sriov/tasks/mlxconfig.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Install MFT dependencies
3-
ansible.builtin.yum:
4-
name: "{{ sriov_os_pkgs }}"
3+
ansible.builtin.package:
4+
name: "{{ sriov_os_pkgs_rpm if ansible_facts.os_family == 'RedHat' else sriov_os_pkgs_deb }}"
55
become: true
66
when: sriov_install_enabled
77

0 commit comments

Comments
 (0)