File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
cookbooks/aws-parallelcluster-install/recipes Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 124124default [ 'cluster' ] [ 'parallelcluster-node-version' ] = '3.3.0'
125125default [ 'cluster' ] [ 'parallelcluster-awsbatch-cli-version' ] = '1.0.0'
126126
127+ # cfn-bootstrap
128+ default [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'version' ] = '2.0-10'
129+ default [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'package' ] = "aws-cfn-bootstrap-py3-#{ node [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'version' ] } .tar.gz"
130+
127131# URLs to software packages used during install recipes
128132# Slurm software
129133default [ 'cluster' ] [ 'slurm_plugin_dir' ] = '/etc/parallelcluster/slurm_plugin'
Original file line number Diff line number Diff line change 5151 not_if { ::File . exist? ( "#{ node [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] } /bin/activate" ) }
5252end
5353
54- bash 'install CloudFormation helpers' do
54+ bash "Install CloudFormation helpers from #{ node [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'package' ] } " do
5555 user 'root'
5656 group 'root'
57- cwd Chef :: Config [ :file_cache_path ]
57+ cwd '/tmp'
5858 code <<-CFNTOOLS
5959 set -e
6060 region="#{ node [ 'cluster' ] [ 'region' ] } "
6161 bucket="s3.amazonaws.com"
6262 [[ ${region} =~ ^cn- ]] && bucket="s3.cn-north-1.amazonaws.com.cn/cn-north-1-aws-parallelcluster"
63- curl --retry 3 -L -o aws-cfn-bootstrap-py3-latest.tar.gz https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
64- #{ node [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] } /bin/pip install aws-cfn-bootstrap-py3-latest.tar.gz
63+ curl --retry 3 -L -o #{ node [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'package' ] } https://${bucket}/cloudformation-examples/#{ node [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'package' ] }
64+ #{ node [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] } /bin/pip install #{ node [ 'cluster' ] [ 'cfn_bootstrap' ] [ 'package' ] }
6565 CFNTOOLS
6666 creates "#{ node [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] } /bin/cfn-hup"
6767end
You can’t perform that action at this time.
0 commit comments