mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-08-02 11:00
This commit is contained in:
@@ -56,6 +56,24 @@ client {
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
reserved {
|
||||
cpu = {{ nomad_conf.client.reserved.cpu }}
|
||||
memory = {{ (nomad_conf.client.reserved.memory is search('%$')) | ternary([((nomad_conf.client.reserved.memory | regex_replace('%$', '') | int) * ansible_memtotal_mb * 0.01), nomad_conf.client.reserved.memory_min] | max | int, nomad_conf.client.reserved.memory) }}
|
||||
disk = {{ nomad_conf.client.reserved.disk }}
|
||||
reserved_ports = "{{ nomad_conf.client.reserved.reserved_ports | join(',') }}"
|
||||
}
|
||||
|
||||
meta {
|
||||
{% for meta in nomad_conf.client.meta.keys() | list %}
|
||||
{{ meta }} = "{{ nomad_conf.client.meta[meta] }}"
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
{% if nomad_conf.client.node_class is defined %}
|
||||
node_class = "{{ nomad_conf.client.node_class }}"
|
||||
{% endif %}
|
||||
|
||||
}
|
||||
|
||||
ui {
|
||||
@@ -71,3 +89,4 @@ ui {
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user