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=f15616144f203cd65fc5f803f7f0ccf158b1d97c;hb=e6be7e0ec3a3626b3741eeac81ec4a25a723850b;hp=c097d214a572838b2f79b2f2ceb4e0a64943cc16;hpb=be5265bc9612f5aedf4f25720c4bd8941e359410;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..f15616144f 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 %}