mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-22 21:23:23 +02:00
Update to 2023-07-20 15:00
This commit is contained in:
parent
5fa912498c
commit
20f6d1b5d0
@ -3,8 +3,8 @@
|
|||||||
# List of plugins to install
|
# List of plugins to install
|
||||||
nomad_plugins:
|
nomad_plugins:
|
||||||
podman:
|
podman:
|
||||||
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.4.2/nomad-driver-podman_0.4.2_linux_amd64.zip
|
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.5.0/nomad-driver-podman_0.5.0_linux_amd64.zip
|
||||||
sha256: bdf7c9f70c79d3d3055e73fdc6212a9bfc221ed824451be2d07b2c62ce4267c4
|
sha256: d5fd1a9e6a533c8a78b0f3c4f74f840c039a70a1e23cae216d1329016fd8b91a
|
||||||
containerd:
|
containerd:
|
||||||
archive_url: https://github.com/Roblox/nomad-driver-containerd/releases/download/v0.9.4/containerd-driver
|
archive_url: https://github.com/Roblox/nomad-driver-containerd/releases/download/v0.9.4/containerd-driver
|
||||||
sha256: 337e1bab178071500bfbe46a59946e0e3bafc652906ed1b755d2aa4d35990982
|
sha256: 337e1bab178071500bfbe46a59946e0e3bafc652906ed1b755d2aa4d35990982
|
||||||
@ -66,6 +66,11 @@ nomad_base_conf:
|
|||||||
# Node pool
|
# Node pool
|
||||||
# node_pool: gateways
|
# node_pool: gateways
|
||||||
|
|
||||||
|
drain_on_shutdown:
|
||||||
|
deadline: 1h
|
||||||
|
force: False
|
||||||
|
ignore_system_jobs: False
|
||||||
|
|
||||||
# host_volumes:
|
# host_volumes:
|
||||||
# - name: mysql
|
# - name: mysql
|
||||||
# path: /data/mysql
|
# path: /data/mysql
|
||||||
|
@ -68,14 +68,30 @@ server {
|
|||||||
{% if nomad_conf.client.enabled %}
|
{% if nomad_conf.client.enabled %}
|
||||||
client {
|
client {
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
servers = [
|
servers = [
|
||||||
{% for server in nomad_servers %}
|
{% for server in nomad_servers %}
|
||||||
"{{ server }}",
|
"{{ server }}",
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
|
||||||
{% if nomad_conf.client.node_pool is defined %}
|
{% if nomad_conf.client.node_pool is defined %}
|
||||||
node_pool = "{{ nomad_conf.client.node_pool }}"
|
node_pool = "{{ nomad_conf.client.node_pool }}"
|
||||||
{% endif %}
|
{% 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 %}
|
{% for volume in nomad_conf.client.host_volumes %}
|
||||||
host_volume "{{ volume.name }}" {
|
host_volume "{{ volume.name }}" {
|
||||||
path = "{{ volume.path }}"
|
path = "{{ volume.path }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user