Skip to content

Commit

Permalink
Merge pull request #47 from grycap/devel
Browse files Browse the repository at this point in the history
Add ubuntu 24 tests
  • Loading branch information
micafer authored Jul 22, 2024
2 parents a130ba4 + 639684d commit acd0e98
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
strategy:
matrix:
distro:
- centos8
- rockylinux8
- rockylinux9
- ubuntu2004
- ubuntu2204
- ubuntu2404
- debian11

steps:
Expand Down
2 changes: 1 addition & 1 deletion molecule/cluster/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
max_number_of_nodes: 1
drmaa_lib_install: true
drmaa_lib_version: 1.1.4
slurm_version: 23.11.1
slurm_version: 23.11.8
add_extra_hosts: false

2 changes: 1 addition & 1 deletion molecule/cluster/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ verifier:
name: ansible
platforms:
- name: slurmserver
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
Expand Down
10 changes: 5 additions & 5 deletions tasks/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
- name: Install common slurm-smd packages
apt:
name:
- slurm-smd
- slurm-smd-client
- slurm-smd={{ slurm_version }}*
- slurm-smd-client={{ slurm_version }}*

- name: Install front slurm-smd packages
apt:
name: slurm-smd-slurmctld
name: slurm-smd-slurmctld={{ slurm_version }}*
when: slurm_type_of_node == "front"

- name: Install wn slurm-smd packages
apt:
name: slurm-smd-slurmd
name: slurm-smd-slurmd={{ slurm_version }}*
when: slurm_type_of_node == "wn"

- name: Install wn slurm-smd-dev package
apt:
name: slurm-smd-dev
name: slurm-smd-dev={{ slurm_version }}*
when: drmaa_lib_install

when: slurm_version is version('23.11.0', '>=')
Expand Down
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
- name: Include "{{slurm_type_of_node}}" SLURM recipe
include_tasks: "{{slurm_type_of_node}}.yaml"

- name: Define the DRMAA library version as it does not work with SLURM 24
set_fact:
drmaa_lib_install: false
when: slurm_version is version('24.0.0', '>=')

- name: Install DRMAA Lib
include_tasks: drmaa.yml
when: drmaa_lib_install

0 comments on commit acd0e98

Please sign in to comment.