Slurm upgrades
This commit is contained in:
parent
cf6ebbbf8c
commit
388f666081
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
slurm_upgrade: no
|
|
@ -37,6 +37,7 @@
|
||||||
- name: Install Slurm client (apt)
|
- name: Install Slurm client (apt)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
with_items:
|
with_items:
|
||||||
- slurm-client
|
- slurm-client
|
||||||
|
@ -45,10 +46,17 @@
|
||||||
- name: Install Slurm (yum)
|
- name: Install Slurm (yum)
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: latest
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
with_items:
|
with_items:
|
||||||
- slurm
|
- slurm
|
||||||
- slurm-munge
|
- munge
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
# As of 17.11, this is only created if you install the example configs package
|
||||||
|
- name: Create /etc/slurm (yum)
|
||||||
|
file:
|
||||||
|
path: /etc/slurm
|
||||||
|
state: directory
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
# FIXME: this task will fail if slurmservers[0] has not already completed the slurm.conf task that follows it
|
# FIXME: this task will fail if slurmservers[0] has not already completed the slurm.conf task that follows it
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
- name: Install Slurm controller packages (apt)
|
- name: Install Slurm controller packages (apt)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
with_items:
|
with_items:
|
||||||
- slurm-wlm
|
- slurm-wlm
|
||||||
|
@ -11,10 +12,11 @@
|
||||||
- name: Install Slurm controller packages (yum)
|
- name: Install Slurm controller packages (yum)
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: latest
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
- munge
|
||||||
- slurm
|
- slurm
|
||||||
- slurm-munge
|
- slurm-slurmctld
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Create slurm state directory
|
- name: Create slurm state directory
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
- name: Install Slurm execution host packages (apt)
|
- name: Install Slurm execution host packages (apt)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
with_items:
|
with_items:
|
||||||
- slurm-wlm
|
- slurm-wlm
|
||||||
|
@ -10,10 +11,11 @@
|
||||||
- name: Install Slurm execution host packages (yum)
|
- name: Install Slurm execution host packages (yum)
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: latest
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
- munge
|
||||||
- slurm
|
- slurm
|
||||||
- slurm-munge
|
- slurm-slurmd
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Create slurm spool directory
|
- name: Create slurm spool directory
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
- name: Install Slurm DB packages (apt)
|
- name: Install Slurm DB packages (apt)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
with_items:
|
with_items:
|
||||||
- slurmdbd
|
- slurmdbd
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
- name: Install Slurm DB packages (yum)
|
- name: Install Slurm DB packages (yum)
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: latest
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
||||||
with_items:
|
with_items:
|
||||||
- munge
|
- munge
|
||||||
- slurm-slurmdbd
|
- slurm-slurmdbd
|
||||||
|
|
Loading…
Reference in New Issue