Skip to content

Commit 21e7c1b

Browse files
committed
[ADC] Set default node package for build image command
1 parent 3c276ed commit 21e7c1b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

cookbooks/aws-parallelcluster-awsbatch/recipes/install.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
return if platform?('redhat')
18+
return if aws_region.start_with?("us-iso")
1819

1920
include_recipe "::awsbatch_virtualenv"
2021

@@ -28,9 +29,6 @@
2829

2930
# Check whether install a custom aws-parallelcluster-awsbatch-cli package or the standard one
3031
# Install awsbatch cli into awsbatch virtual env
31-
if aws_region.start_with?("us-iso") && !node['cluster']['custom_awsbatchcli_package'].empty?
32-
node.default['cluster']['custom_awsbatchcli_package'] = "#{node['cluster']['artifacts_s3_url']}/dependencies/awsbatch/aws-parallelcluster.tgz"
33-
end
3432
if !node['cluster']['custom_awsbatchcli_package'].nil? && !node['cluster']['custom_awsbatchcli_package'].empty?
3533
# Install custom aws-parallelcluster package
3634
bash "install aws-parallelcluster-awsbatch-cli" do

cookbooks/aws-parallelcluster-computefleet/recipes/install/parallelcluster_node.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
end
3535

3636
if aws_region.start_with?("us-iso") && !is_custom_node?
37-
node.default['cluster']['custom_node_package'] = "#{node['cluster']['artifacts_s3_url']}/dependencies/node/aws-parallelcluster-node.tgz"
37+
node_package = "aws-parallelcluster-node-#{node['cluster']['parallelcluster-node-version']}.tgz"
38+
39+
node.default['cluster']['custom_node_package'] = "#{node['cluster']['s3_url']}/parallelcluster/#{node['cluster']['parallelcluster-node-version']}/node/#{node_package}"
3840
end
3941

4042
if is_custom_node?

cookbooks/aws-parallelcluster-shared/attributes/environment.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
# URL for ParallelCluster Artifacts stored in public S3 buckets
77
# ['cluster']['region'] will need to be defined by image_dna.json during AMI build.
8-
default['cluster']['artifacts_s3_url'] = "https://#{node['cluster']['region']}-aws-parallelcluster.s3.#{node['cluster']['region']}.#{node['cluster']['aws_domain']}/archives"
8+
default['cluster']['s3_url'] = "https://#{node['cluster']['region']}-aws-parallelcluster.s3.#{node['cluster']['region']}.#{node['cluster']['aws_domain']}"
9+
default['cluster']['artifacts_s3_url'] = "#{node['cluster']['s3_url']}/archives"

0 commit comments

Comments
 (0)