alias making running drones working

This commit is contained in:
2021-06-30 10:17:51 +02:00
parent 4c4c4da79d
commit 3be5025442
2 changed files with 3 additions and 1 deletions

View File

@@ -113,6 +113,7 @@
ports: "{{ item.exposed_ports | default([]) }}" ports: "{{ item.exposed_ports | default([]) }}"
networks: networks:
- name: "{{ docker_network }}" - name: "{{ docker_network }}"
aliases: "{{ item.aliases | default(omit) }}"
env: env:
slurmuser: "{{ slurm_user }}" slurmuser: "{{ slurm_user }}"
image: "{{ item.image }}" image: "{{ item.image }}"

View File

@@ -10,7 +10,8 @@ slurm_nodes_exec: | # extend range to execute nodes list
{% set slurm_nodes_exec = [] %} {% set slurm_nodes_exec = [] %}
{% for i in range(1, num_nodes+1) -%} {% for i in range(1, num_nodes+1) -%}
{% set _ = slurm_nodes_exec.extend([ {% set _ = slurm_nodes_exec.extend([
{'machine':'exec%s'|format(i), 'image': 'slurm:slurmd'}]) -%} {'machine':'exec%s'|format(i), 'image': 'slurm:slurmd',
'aliases':['drone%s'|format(i)]}]) -%}
{%- endfor %} {%- endfor %}
{{ slurm_nodes_exec }} {{ slurm_nodes_exec }}
slurm_default_mounts: slurm_default_mounts: