Skip to content

Commit 506bb33

Browse files
author
Himani Anil Deshpande
committed
[Isolated] Chnage the name of CFN Dependencies and the folder name inside the Tar
1 parent dd33ac1 commit 506bb33

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cookbooks/aws-parallelcluster-environment/recipes/install/cfn_bootstrap.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@
3434
end
3535

3636
if aws_region.start_with?("us-iso")
37+
dependency_package_name = "pypi-cfn-dependencies-#{node['cluster']['python-major-minor-version']}-#{node['kernel']['machine']}"
38+
dependency_folder_name = dependency_package_name
39+
if platform?('amazon') && node['platform_version'] == "2"
40+
dependency_package_name = "cfn-dependencies"
41+
dependency_folder_name = "cfn"
42+
end
3743
remote_file "#{node['cluster']['base_dir']}/cfn-dependencies.tgz" do
38-
source "#{node['cluster']['artifacts_s3_url']}/dependencies/PyPi/#{node['kernel']['machine']}/pypi-cfn-dependencies-3.12-x86_64.tgz"
44+
source "#{node['cluster']['artifacts_s3_url']}/dependencies/PyPi/#{node['kernel']['machine']}/#{dependency_package_name}.tgz"
3945
mode '0644'
4046
retries 3
4147
retry_delay 5
@@ -49,7 +55,7 @@
4955
code <<-REQ
5056
set -e
5157
tar xzf cfn-dependencies.tgz
52-
cd dependencies
58+
cd #{dependency_folder_name}
5359
#{virtualenv_path}/bin/pip install * -f ./ --no-index
5460
REQ
5561
end

0 commit comments

Comments
 (0)