File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
cookbooks/aws-parallelcluster-platform/recipes/install Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 2020
2121file_cache_path = Chef ::Config [ :file_cache_path ]
2222region = aws_region
23- awscli_url = "https://s3.amazonaws.com/aws-cli/ awscli-bundle .zip"
23+ awscli_url = "https://awscli. #{ aws_domain } / awscli-exe-linux- #{ node [ 'kernel' ] [ 'machine' ] } .zip"
2424
2525if region . start_with? ( "us-iso-" )
2626 awscli_url = "https://aws-sdk-common-infra-dca-prod-deployment-bucket.s3.#{ aws_region } .#{ aws_domain } /aws-cli-v2/linux/x86_64/awscli-exe-linux-x86_64.zip"
4242 overwrite true
4343end
4444
45+ bash 'install awscli' do
46+ code "#{ file_cache_path } /awscli/aws/install -i /usr/local/aws -b /usr/local/bin"
47+ end
48+
4549if region . start_with? ( "us-iso" )
46- bash 'install awscli' do
47- code "#{ file_cache_path } /awscli/aws/install -i /usr/local/aws -b /usr/local/bin"
48- end
4950
5051 cookbook_file "#{ node [ 'cluster' ] [ 'scripts_dir' ] } /iso-ca-bundle-config.sh" do
5152 source 'isolated/iso-ca-bundle-config.sh'
5960 execute "patch ca bundle" do
6061 command "sh #{ node [ 'cluster' ] [ 'scripts_dir' ] } /iso-ca-bundle-config.sh"
6162 end
62- else
63- bash 'install awscli' do
64- code "#{ cookbook_virtualenv_path } /bin/python #{ file_cache_path } /awscli/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws"
65- end
6663end
You can’t perform that action at this time.
0 commit comments