Update to 2025-05-27 15:00

This commit is contained in:
Daniel Berteaud 2025-05-27 15:00:12 +02:00
parent 23f39f1115
commit b6c1e1bbfd
2 changed files with 8 additions and 2 deletions

View File

@ -66,3 +66,7 @@
when: item.create | default(False)
tags: nomad
- name: Create host_volumes_dir directory
file: path={{ nomad_conf.client.host_volumes_dir }} state=directory owner={{ nomad_user }} group={{ nomad_user }} mode=770
when: nomad_conf.client.host_volumes_dir is defined
tags: nomad

View File

@ -101,9 +101,11 @@ client {
# Required for alloc to be able to reach themselves through an exposed port
bridge_network_hairpin_mode = true
{% if nomad_conf.client.node_pool is defined %}
node_pool = "{{ nomad_conf.client.node_pool }}"
{% for conf in ['node_pool', 'host_volumes_dir'] %}
{% if nomad_conf.client[conf] is defined %}
{{ conf }} = "{{ nomad_conf.client[conf] }}"
{% endif %}
{% endfor %}
{% if nomad_conf.client.drain_on_shutdown is defined %}
drain_on_shutdown {