add Default interface parameter

This commit is contained in:
vincent 2023-11-14 17:57:48 +01:00
parent 46d51ac70c
commit 215a0df6a7
2 changed files with 4 additions and 0 deletions

View File

@ -24,3 +24,4 @@ nomad_host_networks:
nomad_allow_privileged: False
nomad_plugins_podman: False
nomad_docker_allow_caps: []
nomad_client_network_interface:

View File

@ -9,6 +9,9 @@ enabled = {{ nomad_server |lower }}
client {
enabled = true
{% if nomad_client_network_interface %}
network_interface = "{{ nomad_client_network_interface }}"
{% endif %}
{% for nomad_host_volume in nomad_host_volumes %}
host_volume "{{ nomad_host_volume['name'] }}" {
path = "{{ nomad_host_volume['path'] }}"