Skip to content

Commit

Permalink
removed master from compute if use master as compute is false
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Nov 28, 2023
1 parent 23961c0 commit 68b98b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/playbook/roles/bibigrid/templates/slurm/slurm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ SlurmdLogFile=/var/log/slurm/slurmd.log
# COMPUTE NODES
{% set sl = {} %}
{% set all = {"nodes":[]} %}
{% for node_name in groups.master+groups.workers %}
{% set master_or_empty = groups.master if use_master_as_compute else [] %}
{% for node_name in master_or_empty +groups.workers %}
{% set node = hostvars[node_name] %}
{% set mem = node.flavor.ram // 1024 * 1000 %}
{% if node.cloud_identifier not in sl %}
Expand Down

0 comments on commit 68b98b0

Please sign in to comment.