aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/mellanox
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-03-07 15:04:48 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-03-08 07:42:13 +0000
commit618b515ab7bdb99ee22d66d7762d8a73802140df (patch)
tree69e20b1a0ef7484645cad010943bf7f837ab9d09 /fdio.infra.ansible/roles/mellanox
parentbf2eead67930492931ebfe6dfc541a7230a7a0a2 (diff)
feat(docs): Add SPR
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I9d82f780196d9d525d184bf26d13eb955b0684c8
Diffstat (limited to 'fdio.infra.ansible/roles/mellanox')
-rw-r--r--fdio.infra.ansible/roles/mellanox/defaults/main.yaml8
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/main.yaml14
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml2
3 files changed, 12 insertions, 12 deletions
diff --git a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
index 06089ddfac..ed58892e63 100644
--- a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
+++ b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
@@ -1,5 +1,5 @@
---
-# file: roles/mellanox/defaults/main.yaml
+# file: defaults/main.yaml
packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
@@ -21,10 +21,10 @@ packages_by_arch:
mellanox_download_url: "http://content.mellanox.com/ofed"
mellanox_extract_dir: "/opt"
-mellanox_cx5_compatibility_matrix:
+mellanox_compatibility_matrix:
dpdk22.03:
# https://doc.dpdk.org/guides/rel_notes/release_22_03.html
- ofed: "5.6-1.0.3.3"
+ ofed: "5.9-0.5.6.0"
dpdk22.07:
# https://doc.dpdk.org/guides/rel_notes/release_22_07.html
- ofed: "5.6-1.0.3.3"
+ ofed: "5.9-0.5.6.0"
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
index 7f47981378..53376eb997 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
@@ -1,5 +1,5 @@
---
-# file: roles/mellanox/tasks/main.yaml
+# file: tasks/main.yaml
- name: Inst - Update Package Cache (APT)
apt:
@@ -17,7 +17,7 @@
tags:
- mellanox-inst-drivers
-- name: Inst - Check Presence of Mellanox CX-5
+- name: Inst - Check Presence of Mellanox
shell: "lspci | grep Mellanox | awk '{print $1}'"
register: mellanox_pcis
failed_when: false
@@ -25,19 +25,19 @@
tags:
- mellanox-inst-drivers
-- name: Inst - Get Mellanox CX-5 OFED driver versions
+- name: Inst - Get Mellanox OFED driver versions
set_fact:
- ofed: "{{ mellanox_cx5_compatibility_matrix[mellanox_cx5_matrix]['ofed'] }}"
+ ofed: "{{ mellanox_compatibility_matrix[mellanox_matrix]['ofed'] }}"
when: >
mellanox_pcis.stdout_lines | length > 0 and
- mellanox_cx5_matrix is defined
+ mellanox_matrix is defined
tags:
- mellanox-inst-drivers
-- name: Inst - Driver Mellanox CX-5
+- name: Inst - Driver Mellanox
import_tasks: ofed.yaml
when: >
mellanox_pcis.stdout_lines | length > 0 and
- mellanox_cx5_matrix is defined
+ mellanox_matrix is defined
tags:
- mellanox-inst-drivers
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
index 732397d269..1084156412 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
@@ -1,5 +1,5 @@
---
-# file: roles/mellanox/tasks/ofed.yaml
+# file: tasks/ofed.yaml
- name: Inst - Get OFED
ansible.builtin.get_url: