Update to 2022-08-05 10:00

This commit is contained in:
Daniel Berteaud
2022-08-05 10:00:16 +02:00
parent b80061c423
commit d95414c6d3
2 changed files with 32 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ bind_addr = "0.0.0.0"
datacenter = "{{ nomad_conf.datacenter }}"
{% endif %}
{% if nomad_conf.region is defined %}
region = "{{ nomad_conf.region }}"
{% endif %}
{% if nomad_conf.name is defined %}
name = {{ nomad_conf.name }}
{% endif %}
@@ -27,6 +31,13 @@ ports {
{% endfor %}
}
acl {
enabled = {{ nomad_conf.acl.enabled | ternary('true', 'false') }}
{% if nomad_conf.acl.replication_token is defined and nomad_conf.region is defined and nomad_conf.server.authoritative_region is defined and nomad_conf.region != nomad_conf.server.authoritative_region %}
replication_token = "{{ nomad_conf.acl.replication_token }}"
{% endif %}
}
server {
enabled = {{ nomad_conf.server.enabled | ternary('true', 'false') }}
bootstrap_expect = {{ nomad_conf.server.bootstrap_expect }}
@@ -40,6 +51,9 @@ server {
{% endfor %}
]
}
{% if nomad_conf.server.authoritative_region is defined %}
authoritative_region = "{{ nomad_conf.server.authoritative_region }}"
{% endif %}
}
{% if nomad_conf.client.enabled %}