forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into developforpr
- Loading branch information
Showing
10 changed files
with
90 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
# | ||
# Cookbook:: aws-parallelcluster-platform | ||
# Recipe:: update | ||
# | ||
# Copyright:: 2013-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the | ||
# License. A copy of the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES | ||
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
fetch_config 'Fetch and load cluster configs' do | ||
update true | ||
end | ||
|
||
sudo_access "Update Sudo Access" if node['cluster']['scheduler'] == 'slurm' |
41 changes: 0 additions & 41 deletions
41
cookbooks/aws-parallelcluster-platform/resources/intel_hpc/install_intel_software.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
cookbooks/aws-parallelcluster-platform/spec/unit/recipes/update_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright:: 2024 Amazon.com, Inc. and its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the | ||
# License. A copy of the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES | ||
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
require 'spec_helper' | ||
|
||
describe 'aws-parallelcluster-platform::update' do | ||
for_all_oses do |platform, version| | ||
context "on #{platform}#{version}" do | ||
context "when scheduler is slurm" do | ||
cached(:chef_run) do | ||
runner = runner(platform: platform, version: version) do |node| | ||
node.override['cluster']['scheduler'] = 'slurm' | ||
end | ||
runner.converge(described_recipe) | ||
end | ||
cached(:node) { chef_run.node } | ||
|
||
it 'it fetches and updates cluster configs' do | ||
is_expected.to run_fetch_config('Fetch and load cluster configs') | ||
end | ||
it 'it updates sudo access' do | ||
is_expected.to setup_sudo_access('Update Sudo Access') | ||
end | ||
end | ||
|
||
context "when scheduler is awsbatch" do | ||
cached(:chef_run) do | ||
runner = runner(platform: platform, version: version) do |node| | ||
node.override['cluster']['scheduler'] = 'awsbatch' | ||
end | ||
runner.converge(described_recipe) | ||
end | ||
cached(:node) { chef_run.node } | ||
|
||
it 'it fetches and updates cluster configs' do | ||
is_expected.to run_fetch_config('Fetch and load cluster configs') | ||
end | ||
it 'it doesnt update sudo access' do | ||
is_expected.not_to setup_sudo_access('Update Sudo Access') | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters