X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fnomad%2Ftemplates%2Fclient.hcl.j2;h=f245697a22b601192ef8e80dbe62e4fe2959012a;hb=85bafb70d413d16972665c0377c3d7b4982b4270;hp=c097d214a572838b2f79b2f2ceb4e0a64943cc16;hpb=216073ac4b05619d9e9fc73131075597196af753;p=csit.git diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 index c097d214a5..f245697a22 100644 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 +++ b/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 @@ -3,6 +3,10 @@ client { no_host_uuid = {{ nomad_no_host_uuid | bool | lower }} node_class = "{{ nomad_node_class }}" + {% if nomad_cpu_total_compute is defined -%} + cpu_total_compute = {{ nomad_cpu_total_compute }} + {% endif -%} + {% if nomad_servers -%} servers = [ {% for ip_port in nomad_servers -%} "{{ ip_port }}" {% if not loop.last %},{% endif %}{%- endfor -%} ] {% endif %} @@ -15,4 +19,13 @@ client { } {% endif %} + {% if nomad_volumes -%} + {% for volume in nomad_volumes -%} + host_volume "{{ volume.name }}" { + path = "{{ volume.path }}" + read_only = {{ volume.read_only | bool | lower }} + } + {% endfor -%} + {% endif %} + }