Skip to content

Commit

Permalink
Add checksum check on Munge download
Browse files Browse the repository at this point in the history
Add checksum check on Munge download

Signed-off-by: Luca Carrogu <[email protected]>
  • Loading branch information
lukeseawalker committed Nov 23, 2023
1 parent 2442f50 commit 513781f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cookbooks/aws-parallelcluster-slurm/attributes/versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
default['cluster']['slurm']['base_url'] = "https://github.com/SchedMD/slurm/archive"
# Munge
default['cluster']['munge']['munge_version'] = '0.5.15'
default['cluster']['munge']['sha256'] = '51b2c81d1a7ec2ab5d486fa51b50c7e79eb1810ca6687b6ed65f3601abc55614'
default['cluster']['munge']['base_url'] = "https://github.com/dun/munge/archive"
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
default_action :setup

munge_version = node['cluster']['munge']['munge_version']
munge_url = "https://github.com/dun/munge/archive/munge-#{munge_version}.tar.gz"
munge_url = "#{node['cluster']['munge']['base_url']}/munge-#{munge_version}.tar.gz"
munge_tarball = "#{node['cluster']['sources_dir']}/munge-#{munge_version}.tar.gz"
munge_user = node['cluster']['munge']['user']
munge_user_id = node['cluster']['munge']['user_id']
munge_group = node['cluster']['munge']['group']
munge_group_id = node['cluster']['munge']['group_id']
munge_sha256 = node['cluster']['munge']['sha256']

action :setup do
directory node['cluster']['sources_dir'] do
Expand Down Expand Up @@ -67,7 +68,7 @@
mode '0644'
retries 3
retry_delay 5
# TODO: Add version or checksum checks
checksum munge_sha256
action :create_if_missing
end
end
Expand Down

0 comments on commit 513781f

Please sign in to comment.