README, minor structure improvements
This commit is contained in:
19
README.md
Normal file
19
README.md
Normal 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```.
|
7
inv.yml
7
inv.yml
@@ -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:
|
||||||
|
27
play.yml
27
play.yml
@@ -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
|
||||||
|
|
||||||
- name: "setup slurm test environment in docker containers"
|
- hosts: slurm
|
||||||
import_role:
|
|
||||||
name: slurm
|
|
||||||
vars:
|
vars:
|
||||||
container_privileged: True
|
container_privileged: True
|
||||||
num_nodes: 3
|
num_nodes: 3
|
||||||
|
roles:
|
||||||
|
- name: "setup docker"
|
||||||
|
role: docker
|
||||||
|
tags: docker
|
||||||
|
- name: "setup slurm test environment in docker containers"
|
||||||
|
role: slurm
|
||||||
tags: slurm
|
tags: slurm
|
||||||
|
Reference in New Issue
Block a user