aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/nomad/templates/server.hcl.j2
blob: b581de9ad07273ccf460718069cc8bdb86a3950a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 %}

}