From e6be7e0ec3a3626b3741eeac81ec4a25a723850b Mon Sep 17 00:00:00 2001 From: pmikus Date: Mon, 8 Jun 2020 06:43:19 +0000 Subject: Infra: Ansible Nomad Signed-off-by: pmikus Change-Id: I2560e3e12b457413db81a7ecc52efd7e39f1aea2 --- .../tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2') 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 %} -- cgit 1.2.3-korg