diff options
author | pmikus <pmikus@cisco.com> | 2020-06-08 06:43:19 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-06-09 15:26:42 +0000 |
commit | e6be7e0ec3a3626b3741eeac81ec4a25a723850b (patch) | |
tree | 1d61767c5605df323866425321747cb972d9412a /resources/tools/testbed-setup/ansible/roles | |
parent | be5265bc9612f5aedf4f25720c4bd8941e359410 (diff) |
Infra: Ansible Nomad
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I2560e3e12b457413db81a7ecc52efd7e39f1aea2
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml | 1 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml index db9b104c36..8233ba7113 100644 --- a/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml @@ -13,6 +13,7 @@ get_url: url: "https://downloads.es.net/pub/iperf/iperf-{{ item }}.tar.gz" dest: "{{ iperf_target_dir }}/iperf-{{ item }}.tar.gz" + validate_certs: false mode: 0644 loop: "{{ iperf_version }}" tags: 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 %} |