Skip to content

Fix sriov MFT dependency installation for Debian #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
Updates the sriov role to correctly install MFT dependencies when on a
Debian system.
11 changes: 10 additions & 1 deletion roles/sriov/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sriov_mft_url: https://www.mellanox.com/downloads/MFT/mft-4.23.0-104-x86_64-rpm.

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

sriov_os_pkgs:
sriov_os_pkgs_rpm:
- gcc
- rpm-build
# -E- Could not find lspci, you may need to install "pciutils" package
Expand All @@ -17,6 +17,15 @@ sriov_os_pkgs:
- kernel-devel
- make

sriov_os_pkgs_deb:
- gcc
# -E- Could not find lspci, you may need to install "pciutils" package
- pciutils
# NOTE(wszumski): Assumes running latest kernel. We could include package version with
# output of uname -r, but the packages aren't always available.
- linux-headers-generic
- make

sriov_restart_handler: reboot

sriov_numvfs: 8
Expand Down
4 changes: 2 additions & 2 deletions roles/sriov/tasks/mlxconfig.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Install MFT dependencies
ansible.builtin.yum:
name: "{{ sriov_os_pkgs }}"
ansible.builtin.package:
name: "{{ sriov_os_pkgs_rpm if ansible_facts.os_family == 'RedHat' else sriov_os_pkgs_deb }}"
become: true
when: sriov_install_enabled

Expand Down