Notice: also trying to run slurmd on execute nodes as user makes no sense because it breaks sbatch. Furthermore there is another necessary to run mpi jobs (just tried MpiDefault=none). I don't consider running slurmd as root a good idea, but there seems to be no other choice at the moment.
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: "install tools"
|
|
yum:
|
|
name: [ vim-enhanced, htop, screen, bind-utils, nmap-ncat, net-tools ]
|
|
state: present
|
|
|
|
- hosts: htcondor
|
|
pre_tasks:
|
|
- name: "install htcondor repo"
|
|
yum:
|
|
name: https://research.cs.wisc.edu/htcondor/repo/8.9/htcondor-release-current.el7.noarch.rpm
|
|
state: present
|
|
tags: htcondor
|
|
|
|
- name: "install htcondor software "
|
|
yum:
|
|
name: htcondor-ce
|
|
state: present
|
|
tags: htcondor
|
|
|
|
- name: "remove minicondor configuration"
|
|
yum:
|
|
name: minicondor
|
|
state: absent
|
|
tags: htcondor
|
|
|
|
- name: "setup singularity"
|
|
import_tasks: "singularity.yml"
|
|
tags: singularity
|
|
|
|
roles:
|
|
- name: "setup docker"
|
|
role: docker
|
|
tags: docker
|
|
|
|
- name: "setup htcondor test environment in docker containers"
|
|
role: docker-htcondor
|
|
tags:
|
|
- htcondor-containered
|
|
- htcondor
|
|
|
|
- hosts: slurm
|
|
vars:
|
|
container_privileged: True
|
|
num_nodes: 3
|
|
roles:
|
|
- name: "setup docker"
|
|
role: docker
|
|
tags: docker
|
|
- name: "setup slurm test environment in docker containers"
|
|
role: slurm
|
|
vars:
|
|
slurm_user: slurm # or root
|
|
tags: slurm
|