|
| 1 | +diff --git a/cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/slurm_dependencies_alinux2023.rb b/cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/slurm_dependencies_alinux2023.rb |
| 2 | +index 1d5a679b..fdb822ad 100644 |
| 3 | +--- a/cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/slurm_dependencies_alinux2023.rb |
| 4 | ++++ b/cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/slurm_dependencies_alinux2023.rb |
| 5 | +@@ -14,6 +14,13 @@ end |
| 6 | + |
| 7 | + use 'partial/_slurm_dependencies_common' |
| 8 | + |
| 9 | ++http_parser_version = "2.9.4" |
| 10 | ++http_parser_url = "#{node['cluster']['artifacts_s3_url']}/dependencies/http_parser/v#{http_parser_version}.tar.gz" |
| 11 | ++http_parser_tarball = "#{node['cluster']['sources_dir']}/http-parser-#{http_parser_version}.tar.gz" |
| 12 | ++ |
| 13 | ++def fabric_manager_url |
| 14 | ++ "#{node['cluster']['artifacts_s3_url']}/dependencies/nvidia_fabric/#{platform}/#{fabric_manager_package}-#{fabric_manager_version}-1.#{arch_suffix}.rpm" |
| 15 | ++end |
| 16 | + def dependencies |
| 17 | + %w(json-c-devel perl perl-Switch lua-devel dbus-devel) |
| 18 | + end |
| 19 | +@@ -22,13 +29,35 @@ action :install_extra_dependencies do |
| 20 | + # http parser is no longer maintained, therefore Amazon Linux 2023 does have have the package in OS repos |
| 21 | + # https://docs.aws.amazon.com/linux/al2023/release-notes/removed-AL2023.4-AL2.html |
| 22 | + # Following https://slurm.schedmd.com/related_software.html#jwt for Installing Http-parser |
| 23 | +- bash 'Install http-parser' do |
| 24 | +- code <<-HTTP_PARSER |
| 25 | +- set -e |
| 26 | +- git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser |
| 27 | +- cd http_parser |
| 28 | +- make |
| 29 | +- make install |
| 30 | +- HTTP_PARSER |
| 31 | ++ |
| 32 | ++ remote_file "#{http_parser_tarball}" do |
| 33 | ++ source "#{http_parser_url}" |
| 34 | ++ mode '0644' |
| 35 | ++ retries 3 |
| 36 | ++ retry_delay 5 |
| 37 | ++ action :create_if_missing |
| 38 | + end |
| 39 | ++ |
| 40 | ++ bash 'make install' do |
| 41 | ++ user 'root' |
| 42 | ++ group 'root' |
| 43 | ++ cwd "#{node['cluster']['sources_dir']}" |
| 44 | ++ code <<-HTTP |
| 45 | ++ set -e |
| 46 | ++ tar xf #{http_parser_tarball} |
| 47 | ++ cd http-parser-#{http_parser_version} |
| 48 | ++ make |
| 49 | ++ make install |
| 50 | ++ HTTP |
| 51 | ++ end |
| 52 | ++ |
| 53 | ++ # bash 'Install http-parser' do |
| 54 | ++ # code <<-HTTP_PARSER |
| 55 | ++ # set -e |
| 56 | ++ # git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser |
| 57 | ++ # cd http_parser |
| 58 | ++ # make |
| 59 | ++ # make install |
| 60 | ++ # HTTP_PARSER |
| 61 | ++ # end |
| 62 | + end |
0 commit comments