mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 03:35:45 +02:00
Update to 2023-07-20 15:00
This commit is contained in:
@@ -68,14 +68,30 @@ server {
|
||||
{% if nomad_conf.client.enabled %}
|
||||
client {
|
||||
enabled = true
|
||||
|
||||
servers = [
|
||||
{% for server in nomad_servers %}
|
||||
"{{ server }}",
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
{% if nomad_conf.client.node_pool is defined %}
|
||||
node_pool = "{{ nomad_conf.client.node_pool }}"
|
||||
{% endif %}
|
||||
|
||||
{% if nomad_conf.client.drain_on_shutdown is defined %}
|
||||
drain_on_shutdown {
|
||||
{% if nomad_conf.client.drain_on_shutdown.deadline is defined %}
|
||||
deadline = "{{ nomad_conf.client.drain_on_shutdown.deadline }}"
|
||||
{% endif %}
|
||||
{% for param in ['force', 'ignore_system_jobs'] %}
|
||||
{% if nomad_conf.client.drain_on_shutdown[param] is defined %}
|
||||
{{ param }} = {{ nomad_conf.client.drain_on_shutdown[param] | ternary('true', 'false') }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% for volume in nomad_conf.client.host_volumes %}
|
||||
host_volume "{{ volume.name }}" {
|
||||
path = "{{ volume.path }}"
|
||||
|
Reference in New Issue
Block a user