option for docker host access to cluster

This commit is contained in:
2021-06-28 17:51:45 +02:00
parent 74a760cf98
commit 1a952a4e7a
3 changed files with 43 additions and 4 deletions

View File

@@ -58,6 +58,13 @@
path: /container/volumes/slurm/
state: directory
- name: "create docker network to make service discovery work"
docker_network:
name: "{{ docker_network }}"
state: present
register: slurm_network_data
tags: slurm-config
- name: upload slurm config
template:
force: true
@@ -71,14 +78,14 @@
slurm_exec_node_mem: 5000 # RealMemory=5964
slurm_alloc_nodes_default:
- name: "{{slurm_prefix+'-submit1'}}"
- name: "{{ inventory_hostname }}"
addr: "{{ slurm_network_data.network.IPAM.Config[0].Gateway }}"
alloc_nodes: "{{ slurm_alloc_nodes_default + extra_nodes | default([])}}"
notify: reconfigure slurm
tags: slurm-config
- name: "create docker network to make service discovery work"
docker_network:
name: "{{ docker_network }}"
state: present
- import_tasks: host-config.yml
when: slurm_hostsystem_cluster_access | default(False)
- name: "create docker volume for shared access between nodes"
docker_volume: