shared volume
This commit is contained in:
@@ -55,6 +55,11 @@
|
|||||||
name: slurm
|
name: slurm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: "create docker volume for shared access between nodes"
|
||||||
|
docker_volume:
|
||||||
|
name: slurm-shared
|
||||||
|
state: present
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
slurm_nodes: # default nodes: controller and submit machine
|
slurm_nodes: # default nodes: controller and submit machine
|
||||||
- machine: ctl
|
- machine: ctl
|
||||||
@@ -87,6 +92,7 @@
|
|||||||
default_mounts:
|
default_mounts:
|
||||||
- /container/volumes/slurm/:/etc/slurm/:rw
|
- /container/volumes/slurm/:/etc/slurm/:rw
|
||||||
- /container/volumes/munge/munge.key:/etc/munge/munge.key:rw
|
- /container/volumes/munge/munge.key:/etc/munge/munge.key:rw
|
||||||
|
- slurm-shared:/shared/:rw
|
||||||
slurm_nodes_all: | # add execute nodes
|
slurm_nodes_all: | # add execute nodes
|
||||||
{% for i in range(1, 4) -%}
|
{% for i in range(1, 4) -%}
|
||||||
{% set _ = slurm_nodes.extend([
|
{% set _ = slurm_nodes.extend([
|
||||||
|
Reference in New Issue
Block a user