Skip to content
Snippets Groups Projects
Commit 8dbc2567 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'slurm-20.02-configless-changes01' into 'master'

Remove probe for GRES/CPU on gpu nodes, and remove gres.conf & slurm.conf, going configless

See merge request !454
parents 0d51b3fc a5b3f989
No related branches found
No related tags found
1 merge request!454Remove probe for GRES/CPU on gpu nodes, and remove gres.conf & slurm.conf, going configless
......@@ -73,6 +73,7 @@
- hwloc-devel
- lua
- lua-devel
- python3
become: true
when: ansible_os_family == "RedHat"
......@@ -92,6 +93,7 @@
- liblua5.2-dev
- hwloc
- libhwloc-dev
- python3
become: true
when: ansible_os_family == "Debian"
......@@ -118,32 +120,12 @@
- include: createSlurmDirectories.yml
- name: check slurm generic resource
shell: "{{ slurm_gres_check }}"
register: slurm_generic_resource
ignore_errors: true
when: slurm_gres_check is defined
check_mode: no
changed_when: False
- name: Gres - Test for Nvidia devices
script: scripts/nvidia-probe.py
register: probeOutput
check_mode: no
changed_when: False
- name: get cpu count
shell: 'lscpu | grep "On-line CPU" | cut -f 2 -d ":" | sed "s/\ *//g"'
register: cpucount
check_mode: no
changed_when: False
- name: "set nvidiaprobe slurm_gres_list"
set_fact: "slurm_gres_list={{ probeOutput.stdout }}"
- name: template gres.conf file
template: src="gres.conf.j2" dest={{ slurm_dir }}/etc/gres.conf mode=644
become: true
- name: make slurm prolog dir
file: path=/opt/slurm/etc state=directory mode=755
......@@ -158,15 +140,6 @@
template: src=slurm.epilog.j2 dest=/opt/slurm/etc/slurm.epilog mode=755
become: true
- name: install slurm.conf
copy: src=files/slurm.conf dest={{ slurm_dir }}/etc/slurm.conf
become: true
when: slurm_use_vpn==False
- name: install slurm.conf
template: src=slurm-vpn.conf.j2 dest={{ slurm_dir }}/etc/slurm.conf
become: true
when: slurm_use_vpn==True
- name: setup envirnment variables
template: src=slurm_setup.sh.j2 dest=/etc/profile.d/slurm_setup.sh
......
[Unit]
Description=Slurm node daemon
After=network.target
ConditionPathExists={{ slurm_dir }}/etc/slurm.conf
# After Slurm-20.02 (configless), this is not needed
# ConditionPathExists={{ slurm_dir }}/etc/slurm.conf
[Service]
Type=forking
KillMode=process
LimitMEMLOCK=infinity
#EnvironmentFile=/etc/default/slurmd
ExecStart={{ slurm_dir }}/sbin/slurmd $SLURMD_OPTIONS
ExecStart={{ slurm_dir }}/sbin/slurmd --conf-server {{ slurmctrl }}:6817
PIDFile={{ slurmpiddir }}/slurmd.pid
[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