Skip to content

Commit 3430abb

Browse files
Pin cfn-bootstrap package version to 2.0-10
Signed-off-by: Francesco Giordano <[email protected]>
1 parent 02bde4c commit 3430abb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

attributes/default.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
default['cluster']['parallelcluster-node-version'] = '3.3.0'
125125
default['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
129133
default['cluster']['slurm_plugin_dir'] = '/etc/parallelcluster/slurm_plugin'

cookbooks/aws-parallelcluster-install/recipes/python.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151
not_if { ::File.exist?("#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/activate") }
5252
end
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"
6767
end

0 commit comments

Comments
 (0)