Skip to content

Commit

Permalink
Merge pull request #366 from ComputeCanada/slurm_perl_sys_hostname
Browse files Browse the repository at this point in the history
Add perl-Sys-hostname in base slurm when os major >= 9
  • Loading branch information
cmd-ntrf committed Jun 10, 2024
2 parents 2c20819 + 98e59a7 commit babd7ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site/profile/manifests/slurm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
Yumrepo['slurm-copr-repo']],
}

# slurm-contribs command "seff" requires Sys/hostname.pm
# which is not packaged by default with perl in RHEL >= 9.
if versioncmp($facts['os']['release']['major'], '9') >= 0 {
ensure_packages(['perl-Sys-Hostname'], { 'ensure' => 'installed' })
}

package { 'slurm-libpmi':
ensure => 'installed',
require => [Package['munge'],
Expand Down

0 comments on commit babd7ac

Please sign in to comment.