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
7 changes: 7 additions & 0 deletions ansible/roles/sonic-common/tasks/platform-cavm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ensure Platform Modules for as7512 are installed
- name: Confirm Platform Modules are installed
become: true
apt: pkg=cavm_platform_modules
state=present
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.

Why -f?

Copy link
Author

Choose a reason for hiding this comment

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

in case of untrusty repo/request for verification from apr etc...


7 changes: 7 additions & 0 deletions ansible/roles/sonic-common/tasks/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
become: true
include: platform-mlnx.yml
when: sonic_hwsku == "ACS-MSN2700"

# Install Platform Modules for Cavium
- name: Confirm Platform Modules for Cavium are installed
become: true
include: platform-cavm.yml
when: sonic_hwsku == "AS7512"
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're going to add more platforms, you should consider changing condition to sonic_hwsku in cavium_hwskus