This commit is contained in:
2021-06-24 14:17:16 +02:00
parent e979ea4d6e
commit 9237d736d8
2 changed files with 16 additions and 8 deletions

View File

@@ -65,15 +65,20 @@
tags: docker tags: docker
- name: "get facts from existing cobald instance (i.e. hostname)" - name: "get facts from existing cobald instance (i.e. hostname)"
import_role: include_role:
name: cobald name: cobald
tasks_from: facts tasks_from: facts
apply:
tags: slurm, cobald, slurm-config
tags: slurm, cobald, slurm-config
vars: vars:
container_name: cobald container_name: cobald
tags: [ slurm, cobald ]
- name: "setup slurm test environment in docker containers" - name: "setup slurm test environment in docker containers"
import_role: name=slurm include_role:
name: slurm
apply:
tags: slurm
vars: vars:
slurm_user: slurm # or root slurm_user: slurm # or root
slurm_user_accounts: slurm_user_accounts:
@@ -95,13 +100,16 @@
# the network name in host environment. We should run our own dns... # the network name in host environment. We should run our own dns...
docker_network: slurm docker_network: slurm
when: '"slurm" in group_names' when: '"slurm" in group_names'
tags: slurm tags: slurm, slurm-config
- name: "install cobald" - name: "install cobald"
import_role: name=cobald include_role:
name: cobald
apply:
tags: cobald
vars: vars:
cobald_slurm: True cobald_slurm: True
container_name: cobald container_name: cobald
# docker_network: slurm # overriden by vars/slurm.yml # docker_network: slurm # overriden by vars/slurm.yml
when: '"cobald" in group_names' when: '"cobald" in group_names'
tags: cobald tags: cobald, influxdb

View File

@@ -71,7 +71,7 @@
- name: "{{slurm_prefix+'-submit1'}}" - name: "{{slurm_prefix+'-submit1'}}"
alloc_nodes: "{{ slurm_alloc_nodes_default + extra_nodes | default([])}}" alloc_nodes: "{{ slurm_alloc_nodes_default + extra_nodes | default([])}}"
notify: reconfigure slurm notify: reconfigure slurm
tags: [ slurm-config ] tags: slurm-config
- name: "create docker network to make service discovery work" - name: "create docker network to make service discovery work"
docker_network: docker_network:
@@ -110,7 +110,7 @@
loop: "{{ slurm_nodes_all }}" loop: "{{ slurm_nodes_all }}"
loop_control: loop_control:
label: "{{slurm_prefix}}-{{ item.machine }}" label: "{{slurm_prefix}}-{{ item.machine }}"
tags: [ slurm-config ] tags: slurm-config
- name: export facts about slurm cluster to be used by other modules - name: export facts about slurm cluster to be used by other modules
set_fact: set_fact: