mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-08-05 10:00
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user