updates
This commit is contained in:
parent
55ee5496ba
commit
3a61d2c628
|
@ -0,0 +1,52 @@
|
||||||
|
Slurm
|
||||||
|
=====
|
||||||
|
|
||||||
|
Install and configure Slurm
|
||||||
|
|
||||||
|
Role Variables
|
||||||
|
--------------
|
||||||
|
|
||||||
|
All variables are optional. However, if unset, the role will essentially do nothing. See the [defaults][defaults] and [example playbook](#example-playbook) for examples.
|
||||||
|
|
||||||
|
You need to define a `slurm_user` like this, unless you want to override anything.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
slurm_user: {}
|
||||||
|
```
|
||||||
|
|
||||||
|
For the various roles a slurm node can play, you can either set group names, or add values to a list, `slurm_roles`.
|
||||||
|
|
||||||
|
- group slurmservers or `slurm_roles: ['controller']`
|
||||||
|
- group slurmexechosts or `slurm_roles: ['exec']`
|
||||||
|
- group slurmdbdservers or `slurm_roles: ['dbd']`
|
||||||
|
|
||||||
|
Dependencies
|
||||||
|
------------
|
||||||
|
|
||||||
|
None.
|
||||||
|
|
||||||
|
Example Playbook
|
||||||
|
----------------
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Slurm all in One
|
||||||
|
hosts: all
|
||||||
|
vars:
|
||||||
|
slurm_user: {}
|
||||||
|
slurm_roles: ['controller', 'exec', 'dbd']
|
||||||
|
roles:
|
||||||
|
- galaxyproject.slurm
|
||||||
|
```
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
MIT
|
||||||
|
|
||||||
|
Author Information
|
||||||
|
------------------
|
||||||
|
|
||||||
|
[Nate Coraor](https://github.com/natefoo)
|
||||||
|
[Helena Rasche](https://github.com/erasche)
|
||||||
|
|
||||||
|
[View contributors on GitHub](https://github.com/galaxyproject/ansible-cvmfs/graphs/contributors)
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
slurm_upgrade: no
|
slurm_upgrade: no
|
||||||
|
slurm_roles: []
|
||||||
|
|
|
@ -24,15 +24,15 @@
|
||||||
|
|
||||||
- name: Include controller installation tasks
|
- name: Include controller installation tasks
|
||||||
include: slurmctld.yml
|
include: slurmctld.yml
|
||||||
when: "'slurmservers' in group_names"
|
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
|
||||||
|
|
||||||
- name: Include execution host installation tasks
|
- name: Include execution host installation tasks
|
||||||
include: slurmd.yml
|
include: slurmd.yml
|
||||||
when: "'slurmexechosts' in group_names"
|
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
|
||||||
|
|
||||||
- name: Include DB installation tasks
|
- name: Include DB installation tasks
|
||||||
include: slurmdbd.yml
|
include: slurmdbd.yml
|
||||||
when: "'slurmdbdservers' in group_names"
|
when: "'slurmdbdservers' in group_names 'dbd' in slurm_roles"
|
||||||
|
|
||||||
- name: Install Slurm client (apt)
|
- name: Install Slurm client (apt)
|
||||||
apt:
|
apt:
|
||||||
|
@ -129,18 +129,18 @@
|
||||||
name: "{{ slurmdbd_service_name }}"
|
name: "{{ slurmdbd_service_name }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: "'slurmdbdservers' in group_names"
|
when: "'slurmdbdservers' in group_names 'dbd' in slurm_roles"
|
||||||
|
|
||||||
- name: Ensure slurmctld is running
|
- name: Ensure slurmctld is running
|
||||||
service:
|
service:
|
||||||
name: "{{ slurmctld_service_name }}"
|
name: "{{ slurmctld_service_name }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: "'slurmservers' in group_names"
|
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
|
||||||
|
|
||||||
- name: Ensure slurmd is running
|
- name: Ensure slurmd is running
|
||||||
service:
|
service:
|
||||||
name: "{{ slurmd_service_name }}"
|
name: "{{ slurmd_service_name }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: "'slurmexechosts' in group_names"
|
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
|
||||||
|
|
Loading…
Reference in New Issue