README, minor structure improvements

This commit is contained in:
2021-04-27 14:32:25 +02:00
parent 89423edf25
commit d25c2f7a15
4 changed files with 47 additions and 10 deletions

19
README.md Normal file
View File

@@ -0,0 +1,19 @@
# Requirements:
CentOS 7 vm equipped with 2 CPU cores and 2 disks: one main disk containing OS
and an additional virtio disk containing docker images. Typically choose 5GB
for size of each disk.
# Tags
- htcondor, singularity, docker, slurm
- htcondor-containered, slurm-config
Just update slurm config using --tags slurm-config.
Full setup of just slurm using --skip-tags htcondor,singularity
# Example: Setup SLURM
First adjust inv.yml to you needs, specifying the hostname of your VM. Run:
ansible-playbook -i inv.yml --skip-tags htcondor,singularity play.yml
Configuration goes into ```/container/volumes/slurm/slurm.conf``` generated
from ```roles/slurm/templates/slurm.conf.j2```.

View File

@@ -5,3 +5,10 @@ all:
ansible_host: ed-c7-1.virt.magni.thoto.net ansible_host: ed-c7-1.virt.magni.thoto.net
ssh_args: -o ControlMaster=auto -o ControlPersist=60s ssh_args: -o ControlMaster=auto -o ControlPersist=60s
# ansible_host: 192.168.122.139 # ansible_host: 192.168.122.139
children:
htcondor:
hosts:
ed-c7-1:
slurm:
hosts:
ed-c7-1:

View File

@@ -1,43 +1,54 @@
--- ---
- hosts: ed-c7-1 - hosts: all
tasks: tasks:
- name: "install tools" - name: "install tools"
yum: yum:
name: [ vim-enhanced, htop, screen, bind-utils, nmap-ncat, net-tools ] name: [ vim-enhanced, htop, screen, bind-utils, nmap-ncat, net-tools ]
state: present state: present
- hosts: htcondor
pre_tasks:
- name: "install htcondor repo" - name: "install htcondor repo"
yum: yum:
name: https://research.cs.wisc.edu/htcondor/repo/8.9/htcondor-release-current.el7.noarch.rpm name: https://research.cs.wisc.edu/htcondor/repo/8.9/htcondor-release-current.el7.noarch.rpm
state: present state: present
tags: htcondor
- name: "install htcondor software " - name: "install htcondor software "
yum: yum:
name: htcondor-ce name: htcondor-ce
state: present state: present
tags: htcondor
- name: "remove minicondor configuration" - name: "remove minicondor configuration"
yum: yum:
name: minicondor name: minicondor
state: absent state: absent
tags: htcondor
- name: "setup singularity" - name: "setup singularity"
import_tasks: "singularity.yml" import_tasks: "singularity.yml"
tags: singularity tags: singularity
roles:
- name: "setup docker" - name: "setup docker"
import_tasks: "docker_setup.yml" role: docker
tags: docker tags: docker
- name: "setup htcondor test environment in docker containers" - name: "setup htcondor test environment in docker containers"
import_role: role: docker-htcondor
name: docker-htcondor tags:
tags: htcondor-containered - 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" - name: "setup slurm test environment in docker containers"
import_role: role: slurm
name: slurm
vars:
container_privileged: True
num_nodes: 3
tags: slurm tags: slurm