Skip to content

Commit

Permalink
Change slurm_version options from 19,20 to 19.05 and 20.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Feb 23, 2021
1 parent 27108d3 commit f1db2e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ variables for each profile.
| ------------------------------------- | :------ | :---------------------------------------------------------------------- | -------- |
| `profile::slurm::base::cluster_name` | String | Name of the cluster | |
| `profile::slurm::base::munge_key` | String | Base64 encoded Munge key | |
| `profile::slurm::base::slurm_version` | Enum[19, 20] | Slurm Major version to install | 19 |
| `profile::slurm::base::slurm_version` | Enum[19.05, 20.11] | Slurm version to install | 19.05 |
| `profile::slurm::accounting:password` | String | Password used by for SlurmDBD to connect to MariaDB | |
| `profile::slurm::accounting:dbd_port` | Integer | SlurmDBD service listening port | |

Expand Down
2 changes: 1 addition & 1 deletion site/profile/manifests/slurm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class profile::slurm::base (
String $cluster_name,
String $munge_key,
Integer[19, 20] $slurm_version = 19,
Enum['19.05', '20.11'] $slurm_version = '19.05',
Boolean $force_slurm_in_path = false
)
{
Expand Down
4 changes: 2 additions & 2 deletions site/profile/templates/slurm/slurm.conf.epp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ ProctrackType=proctrack/cgroup
TaskPlugin=task/cgroup

StateSaveLocation=/var/spool/slurm
<% if $slurm_version == 19 { -%>
<% if $slurm_version == '19.05' { -%>
SallocDefaultCommand="srun -n1 -N1 --mem-per-cpu=0 --pty --preserve-env --mpi=none bash"
<% } elsif $slurm_version == 20 { -%>
<% } elsif $slurm_version == '20.11' { -%>
InteractiveStepOptions="--interactive --mem-per-cpu=0 --preserve-env --pty $SHELL"
LaunchParameters=use_interactive_step
<% } -%>
Expand Down

0 comments on commit f1db2e3

Please sign in to comment.