Skip to content
Snippets Groups Projects
Commit 6261f117 authored by Philip Chan's avatar Philip Chan
Browse files

Merge branch 'rocky_update' into 'master'

Rocky update

See merge request !597
parents ed243d26 598e2735
No related branches found
No related tags found
1 merge request!597Rocky update
......@@ -80,10 +80,15 @@
become: true
tags: CHRISTMAS
- name: print ansible-distribution
debug:
msg: "ansible_distribution is {{ ansible_distribution }} and ansible_distribution_major_version is {{ ansible_distribution_major_version }}"
- name: set use_systemd Redhat
set_fact:
use_systemd: True
when: (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and ( ansible_distribution_major_version == "7")
when: ( ansible_distribution == "Rocky" or ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and ( ansible_distribution_major_version >= "7")
- name: set use_systemd Debian
set_fact:
......
......@@ -109,8 +109,28 @@
when:
- ansible_os_family == 'Debian'
- name: configure slurm
- name: install pmix for Rocky
yum:
name: "{{ item }}"
loop:
- pmix
- pmix-devel
- json-c
- json-c-devel
- libyaml
- libyaml-devel
become: true
when: ( ansible_distribution == "Rocky" )
- name: configure slurm when NOT Rocky
command: "{{ slurm_src_dir }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix={{ pmix_dir }} --with-ucx={{ ucx_dir }}"
args:
creates: "{{ slurm_dir }}/bin/srun"
chdir: "{{ slurm_src_dir }}"
when: ( ansible_distribution != "Rocky" )
- name: configure slurm when Rocky
command: "{{ slurm_src_dir }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix --with-ucx={{ ucx_dir }} --with-json --with-yaml --with-hwloc --without-rsmi"
args:
creates: "{{ slurm_dir }}/bin/srun"
chdir: "{{ slurm_src_dir }}"
......@@ -118,6 +138,8 @@
# LD_LIBRARY_PATH: /lustre/usr_local/hpcx/2.7.0-redhat7.7/ucx/lib
when:
- force_slurm_recompile is defined or not stat_srun.stat.exists
- ( ansible_distribution == "Rocky" )
become: true
- name: build slurm
command: make
......@@ -125,6 +147,7 @@
creates: "{{ slurm_dir }}/bin/srun"
chdir: "{{ slurm_src_dir }}"
when: force_slurm_recompile is defined or not stat_srun.stat.exists
become: true
- name: install slurm
shell: make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment