Skip to content
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
4 changes: 4 additions & 0 deletions ansible/roles/sonic-common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@
mode=0644
tags: ssw

# Setup Platform
- include: platform.yml
tags: platform,unsafe

# Install Persistent Iptables Package
- name: Install iptables-persistent
become: true
Expand Down
8 changes: 8 additions & 0 deletions ansible/roles/sonic-common/tasks/platform-dell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ensure Platform Modules for S6000 are installed
- name: Confirm Platform Modules are installed
become: true
apt: pkg={{ platform_modules_s6000.name }}={{ platform_modules_s6000.version }}
state=present
default_release={{ apt_default_release }}
force=yes
register: platform_module_install
28 changes: 28 additions & 0 deletions ansible/roles/sonic-common/tasks/platform-mlnx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- name: Ensure pciutils is installed
apt: pkg=pciutils
state=present
force=yes

- name: Ensure MLNX Firmware tools are installed
apt: pkg=mft
state=present
default_release={{ apt_default_release }}
force=yes

- name: Ensure MLNX Firmware kernel modules are installed
apt: pkg=kernel-mft-modules
state=present
default_release={{ apt_default_release }}
force=yes

- name: Ensure Firmware service started and Enabled
become: true
service: name=mst
state=started
enabled=yes

- name: Ensure MLNX Platform modules are installed
apt: pkg=hw-management
state=present
default_release={{ apt_default_release }}
force=yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a 'platform_module_install" register here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, likely missing, will address this problem.

11 changes: 11 additions & 0 deletions ansible/roles/sonic-common/tasks/platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Install Platform Modules for Dell
- name: Confirm Platform Modules for Dell are installed
become: true
include: platform-dell.yml
when: sonic_hwsku == "Force10-S6000" or sonic_hwsku == "ACS-S6000"

# Install Platform Modules for Mellanox
- name: Confirm Platform Modules for Mellanox are installed
become: true
include: platform-mlnx.yml
when: sonic_hwsku == "ACS-MSN2700"