mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 02:03:09 +02:00
Update to 2022-08-05 15:00
This commit is contained in:
parent
51a3009e2a
commit
09f3d86b12
@ -50,7 +50,7 @@ nomad_base_conf:
|
|||||||
# The default is to act as a client if the hostname is not listed in nomad servers
|
# The default is to act as a client if the hostname is not listed in nomad servers
|
||||||
client:
|
client:
|
||||||
# Should client be enabled
|
# Should client be enabled
|
||||||
enabled: "{{ (inventory_hostname in nomad_servers) | ternary(False, True) }}"
|
enabled: "{{ (inventory_hostname in nomad_servers | map('regex_replace', ':\\d+$', '')) | ternary(False, True) }}"
|
||||||
# host_volumes:
|
# host_volumes:
|
||||||
# - name: mysql
|
# - name: mysql
|
||||||
# path: /data/mysql
|
# path: /data/mysql
|
||||||
@ -103,7 +103,7 @@ nomad_base_conf:
|
|||||||
server:
|
server:
|
||||||
# Should server be enabled
|
# Should server be enabled
|
||||||
# The default is to act as a server if the hostname is listed in nomad_servers
|
# The default is to act as a server if the hostname is listed in nomad_servers
|
||||||
enabled: "{{ (inventory_hostname in nomad_servers) | ternary(True, False) }}"
|
enabled: "{{ (inventory_hostname in nomad_servers | map('regex_replace', ':\\d+$', '')) | ternary(True, False) }}"
|
||||||
|
|
||||||
# Expected number of servers to bootstrap the cluster. The default is to wait for all the servers
|
# Expected number of servers to bootstrap the cluster. The default is to wait for all the servers
|
||||||
# listed in nomad_servers to be ready, and then to do the bootstrap
|
# listed in nomad_servers to be ready, and then to do the bootstrap
|
||||||
@ -121,7 +121,7 @@ nomad_base_conf:
|
|||||||
# UI related settings
|
# UI related settings
|
||||||
ui:
|
ui:
|
||||||
# Default is to enable the UI on server only
|
# Default is to enable the UI on server only
|
||||||
enabled: "{{ (inventory_hostname in nomad_servers) | ternary(True, False) }}"
|
enabled: "{{ (inventory_hostname in nomad_servers | map('regex_replace', ':\\d+$', '')) | ternary(True, False) }}"
|
||||||
# Consul and vault optional URL. This is just to add a shortcut in Nomad's UI
|
# Consul and vault optional URL. This is just to add a shortcut in Nomad's UI
|
||||||
# consul_ui: https://consul.example.org
|
# consul_ui: https://consul.example.org
|
||||||
# vault_ui: https://vault.example.org
|
# vault_ui: https://vault.example.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user