Skip to content

Commit 833985d

Browse files
author
Himani Anil Deshpande
committed
[Bug] Install cookbook-dependencies in all regions
1 parent ec644a6 commit 833985d

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,22 @@
3333
not_if { ::File.exist?("#{cookbook_virtualenv_path}/bin/activate") }
3434
end
3535

36-
if aws_region.start_with?("us-iso")
37-
remote_file "#{node['cluster']['base_dir']}/cookbook-dependencies.tgz" do
38-
source pypi_s3_uri
39-
mode '0644'
40-
retries 3
41-
retry_delay 5
42-
action :create_if_missing
43-
end
36+
remote_file "#{node['cluster']['base_dir']}/cookbook-dependencies.tgz" do
37+
source pypi_s3_uri
38+
mode '0644'
39+
retries 3
40+
retry_delay 5
41+
action :create_if_missing
42+
end
4443

45-
bash 'pip install' do
46-
user 'root'
47-
group 'root'
48-
cwd "#{node['cluster']['base_dir']}"
49-
code <<-REQ
50-
set -e
51-
tar xzf cookbook-dependencies.tgz
52-
cd #{dependency_package_name}
53-
#{virtualenv_path}/bin/pip install * -f ./ --no-index
54-
REQ
55-
end
44+
bash 'pip install' do
45+
user 'root'
46+
group 'root'
47+
cwd "#{node['cluster']['base_dir']}"
48+
code <<-REQ
49+
set -e
50+
tar xzf cookbook-dependencies.tgz
51+
cd #{dependency_package_name}
52+
#{virtualenv_path}/bin/pip install * -f ./ --no-index
53+
REQ
5654
end

0 commit comments

Comments
 (0)