tags
This commit is contained in:
20
play.yml
20
play.yml
@@ -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
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user