Skip to content

Commit fb6e593

Browse files
Consolidate nvidia fabric_manager and gdrcopy configure in the resource
Signed-off-by: Francesco Giordano <[email protected]>
1 parent 13334d8 commit fb6e593

20 files changed

+33
-40
lines changed

cookbooks/aws-parallelcluster-install/resources/fabric_manager/fabric_manager_amazon2.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/fabric_manager_amazon2.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/fabric_manager_centos7.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/fabric_manager_centos7.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/fabric_manager_redhat8.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/fabric_manager_redhat8.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/fabric_manager_ubuntu18.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/fabric_manager_ubuntu18.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/fabric_manager_ubuntu20.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/fabric_manager_ubuntu20.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/partial/_fabric_manager_common.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/partial/_fabric_manager_common.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@
2020
return if arm_instance? || !(node['cluster']['nvidia']['enabled'] == 'yes' || node['cluster']['nvidia']['enabled'] == true)
2121
action_install_package
2222
end
23+
24+
action :configure do
25+
# Start nvidia fabric manager on NVSwitch enabled systems
26+
if get_nvswitches > 1
27+
service 'nvidia-fabricmanager' do
28+
action %i(start enable)
29+
supports status: true
30+
end
31+
end
32+
end

cookbooks/aws-parallelcluster-install/resources/fabric_manager/partial/_fabric_manager_install_debian.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/partial/_fabric_manager_install_debian.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/fabric_manager/partial/_fabric_manager_install_rhel.rb renamed to cookbooks/aws-parallelcluster-common/resources/fabric_manager/partial/_fabric_manager_install_rhel.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/gdrcopy/gdrcopy_amazon2.rb renamed to cookbooks/aws-parallelcluster-common/resources/gdrcopy/gdrcopy_amazon2.rb

File renamed without changes.

cookbooks/aws-parallelcluster-install/resources/gdrcopy/gdrcopy_centos7.rb renamed to cookbooks/aws-parallelcluster-common/resources/gdrcopy/gdrcopy_centos7.rb

File renamed without changes.

0 commit comments

Comments
 (0)