diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/nomad/templates')
7 files changed, 0 insertions, 116 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/base.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/base.hcl.j2 deleted file mode 100644 index 7badecf9e0..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/base.hcl.j2 +++ /dev/null @@ -1,11 +0,0 @@ -name = "{{ nomad_name }}" -region = "{{ nomad_region }}" -datacenter = "{{ nomad_datacenter }}" - -bind_addr = "{{ nomad_bind_addr }}" -data_dir = "{{ nomad_data_dir }}" - -enable_syslog = {{ nomad_syslog_enable | bool | lower }} -enable_debug = {{ nomad_enable_debug | bool | lower }} -disable_update_check = {{ nomad_disable_update_check | bool | lower }} -log_level = "{{ nomad_log_level }}" 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 deleted file mode 100644 index f245697a22..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 +++ /dev/null @@ -1,31 +0,0 @@ -client { - enabled = {{ nomad_node_client | bool | lower }} - 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 %} - - {% if nomad_options -%} - options = { - {% for key, value in nomad_options.items() %} - "{{ key }}" = "{{ value }}" - {% endfor -%} - } - {% 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 %} - -} diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/custom.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/custom.hcl.j2 deleted file mode 100644 index 37ff6f3496..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/custom.hcl.j2 +++ /dev/null @@ -1,5 +0,0 @@ -{% if nomad_config_custom -%} -{{ nomad_config_custom | to_nice_json }} -{% else %} -{} -{% endif %} diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/nomad_systemd.service.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/nomad_systemd.service.j2 deleted file mode 100644 index 2a87c65063..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/nomad_systemd.service.j2 +++ /dev/null @@ -1,21 +0,0 @@ -[Unit] -Description=Nomad Service -Documentation=https://www.nomadproject.io/docs/ -Wants=network-online.target -After=network-online.target - -[Service] -# TODO: Decrease privilege -ExecReload=/bin/kill -SIGHUP $MAINPID -ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }} -KillSignal=SIGTERM -LimitNOFILE=infinity -LimitNPROC=infinity -Restart=on-failure -RestartSec=1 -User=root -Group=root -Environment="GOMAXPROCS=2" - -[Install] -WantedBy=multi-user.target diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/server.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/server.hcl.j2 deleted file mode 100644 index b581de9ad0..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/server.hcl.j2 +++ /dev/null @@ -1,16 +0,0 @@ -server { - enabled = {{ nomad_node_server | bool | lower }} - - {% if nomad_node_server | bool -%} - bootstrap_expect = {{ nomad_bootstrap_expect }} - {%- endif %} - - encrypt = "{{ nomad_encrypt }}" - - {% if nomad_retry_join | bool -%} - server_join { - retry_join = [ {% for ip_port in nomad_retry_servers -%} "{{ ip_port }}" {% if not loop.last %},{% endif %}{%- endfor -%} ] - } - {%- endif %} - -} diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 deleted file mode 100644 index 256c6999e9..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 +++ /dev/null @@ -1,20 +0,0 @@ -telemetry { - # Telemetry provider parameters - {% for key, value in nomad_telemetry_provider_parameters.items() -%} - {% if value|bool -%} - {{ key }} = {{ value | bool | lower }} - {% elif value|string or value == "" -%} - {{ key }} = "{{ value }}" - {% else %} - {{ key }} = {{ value }} - {% endif -%} - {% endfor -%} - - # Common parameters - disable_hostname = {{ nomad_disable_hostname | bool | lower }} - collection_interval = "{{ nomad_collection_interval }}" - use_node_name = {{ nomad_use_node_name | bool | lower }} - publish_allocation_metrics = {{ nomad_publish_allocation_metrics | bool | lower }} - publish_node_metrics = {{ nomad_publish_node_metrics | bool | lower }} - backwards_compatible_metrics = {{ nomad_backwards_compatible_metrics | bool | lower }} -} diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/tls.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/tls.hcl.j2 deleted file mode 100644 index 650765f1b1..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/tls.hcl.j2 +++ /dev/null @@ -1,12 +0,0 @@ -{% if ( nomad_ca_file ) and - ( nomad_cert_file ) and - ( nomad_key_file ) -%} -tls { - http = {{ nomad_http | bool | lower }} - rpc = {{ nomad_rpc | bool | lower }} - ca_file = "{{ nomad_ca_file }}" - cert_file = "{{ nomad_cert_file }}" - key_file = "{{ nomad_key_file }}" -} -{% endif %} |