feat: add some variable for meta, node_class and node_pool
This commit is contained in:
parent
73ffee9750
commit
151fca0b02
@ -26,3 +26,11 @@ nomad_plugins_podman: False
|
|||||||
nomad_docker_extra_labels: []
|
nomad_docker_extra_labels: []
|
||||||
nomad_docker_allow_caps: []
|
nomad_docker_allow_caps: []
|
||||||
nomad_client_network_interface:
|
nomad_client_network_interface:
|
||||||
|
|
||||||
|
nomad_client_meta: []
|
||||||
|
# - name:
|
||||||
|
# value:
|
||||||
|
# - name:
|
||||||
|
# value:
|
||||||
|
nomad_node_class:
|
||||||
|
nomad_node_pool:
|
||||||
|
@ -12,6 +12,21 @@ client {
|
|||||||
{% if nomad_client_network_interface %}
|
{% if nomad_client_network_interface %}
|
||||||
network_interface = "{{ nomad_client_network_interface }}"
|
network_interface = "{{ nomad_client_network_interface }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if nomad_client_meta %}
|
||||||
|
meta {
|
||||||
|
{% for meta in nomad_client_meta %}
|
||||||
|
{{meta["name"]}} = "{{meta["value"]}}"
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if nomad_node_class %}
|
||||||
|
node_class = "{{nomad_node_class}}"
|
||||||
|
{% endif %}
|
||||||
|
{% if nomad_node_pool %}
|
||||||
|
node_pool = "{{nomad_node_pool}}"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for nomad_host_volume in nomad_host_volumes %}
|
{% for nomad_host_volume in nomad_host_volumes %}
|
||||||
host_volume "{{ nomad_host_volume['name'] }}" {
|
host_volume "{{ nomad_host_volume['name'] }}" {
|
||||||
path = "{{ nomad_host_volume['path'] }}"
|
path = "{{ nomad_host_volume['path'] }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user