Skip to content

Commit 2ecbdb3

Browse files
Pin cfn-bootstrap package version to 2.0-10
Signed-off-by: Francesco Giordano <[email protected]>
1 parent ee8967d commit 2ecbdb3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ This file is used to list changes made in each version of the AWS ParallelCluste
77
------
88

99
**ENHANCEMENTS**
10-
1110
- Improve the logic to associate the host routing tables to the different network cards to better support EC2 instances with several NICs.
1211

1312
**CHANGES**
1413
- Upgrade NVIDIA driver to version 470.141.03.
1514
- Upgrade NVIDIA Fabric Manager to version 470.141.03.
15+
- Pin cfn-bootstrap helper package version to 2.0-10
1616
- Disable cron job tasks man-db and mlocate, which may have a negative impact on node performance.
1717
- Upgrade Intel MPI Library to 2021.6.0.602.
1818
- Upgrade Python from 3.7.10 to 3.7.13 in response to this [security risk](https://nvd.nist.gov/vuln/detail/CVE-2021-3737).

attributes/default.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
default['cluster']['parallelcluster-node-version'] = '3.2.1'
120120
default['cluster']['parallelcluster-awsbatch-cli-version'] = '1.0.0'
121121

122+
# cfn-bootstrap
123+
default['cluster']['cfn_bootstrap']['version'] = '2.0-10'
124+
default['cluster']['cfn_bootstrap']['package'] = "aws-cfn-bootstrap-py3-#{node['cluster']['cfn_bootstrap']['version']}.tar.gz"
125+
122126
# URLs to software packages used during install recipes
123127
# Slurm software
124128
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
@@ -46,17 +46,17 @@
4646
not_if { ::File.exist?("#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/activate") }
4747
end
4848

49-
bash 'install CloudFormation helpers' do
49+
bash "Install CloudFormation helpers from #{node['cluster']['cfn_bootstrap']['package']}" do
5050
user 'root'
5151
group 'root'
52-
cwd Chef::Config[:file_cache_path]
52+
cwd '/tmp'
5353
code <<-CFNTOOLS
5454
set -e
5555
region="#{node['cluster']['region']}"
5656
bucket="s3.amazonaws.com"
5757
[[ ${region} =~ ^cn- ]] && bucket="s3.cn-north-1.amazonaws.com.cn/cn-north-1-aws-parallelcluster"
58-
curl --retry 3 -L -o aws-cfn-bootstrap-py3-latest.tar.gz https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
59-
#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/pip install aws-cfn-bootstrap-py3-latest.tar.gz
58+
curl --retry 3 -L -o #{node['cluster']['cfn_bootstrap']['package']} https://${bucket}/cloudformation-examples/#{node['cluster']['cfn_bootstrap']['package']}
59+
#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/pip install #{node['cluster']['cfn_bootstrap']['package']}
6060
CFNTOOLS
6161
creates "#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/cfn-hup"
6262
end

0 commit comments

Comments
 (0)