File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
aws-parallelcluster-environment/resources/efs/partial
aws-parallelcluster-platform/recipes/install Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 5959 mode '0644'
6060 retries 3
6161 retry_delay 5
62- checksum new_resource . efs_utils_checksum
6362 action :create_if_missing
6463 end
6564 end
Original file line number Diff line number Diff line change 3333 not_if { ::File . exist? ( "#{ cookbook_virtualenv_path } /bin/activate" ) }
3434end
3535
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
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
4344
44- bash 'pip install' do
45- user 'root'
46- group 'root'
47- cwd "#{ node [ 'cluster' ] [ 'base_dir' ] } "
48- code <<-REQ
45+ bash 'pip install' do
46+ user 'root'
47+ group 'root'
48+ cwd "#{ node [ 'cluster' ] [ 'base_dir' ] } "
49+ code <<-REQ
4950 set -e
5051 tar xzf cookbook-dependencies.tgz
5152 cd #{ dependency_package_name }
5253 #{ virtualenv_path } /bin/pip install * -f ./ --no-index
5354 REQ
55+ end
5456end
You can’t perform that action at this time.
0 commit comments