mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-07-23 14:00
This commit is contained in:
@@ -18,19 +18,21 @@ nomad_user: "{{ nomad_conf.client.enabled | ternary('root', 'nomad') }}"
|
||||
nomad_servers: []
|
||||
|
||||
# Ports used by Nomad, the protocols, and the list of IP/CIDR for which the ports will be opened in the firewall
|
||||
nomad_services:
|
||||
nomad_base_services:
|
||||
http_api:
|
||||
port: 4646
|
||||
port: "{{ nomad_conf.ports.http | default(4646) }}"
|
||||
proto: [tcp]
|
||||
src_ip: []
|
||||
rpc:
|
||||
port: 4647
|
||||
port: "{{ nomad_conf.ports.rpc | default(4647) }}"
|
||||
proto: [tcp]
|
||||
src_ip: []
|
||||
serf:
|
||||
port: 4648
|
||||
port: "{{ nomad_conf.ports.serf | default(4648) }}"
|
||||
proto: [tcp,udp]
|
||||
src_ip: []
|
||||
nomad_extra_services: {}
|
||||
nomad_services: "{{ nomad_base_services | combine(nomad_extra_services, recursive=True) }}"
|
||||
|
||||
# Nomad configuration (which will be converted to JSON)
|
||||
# The configuration is splited in a base conf, an extra conf, and a host conf so you can override part of the config easily
|
||||
@@ -47,10 +49,6 @@ nomad_base_conf:
|
||||
server_join:
|
||||
retry_join: "{{ (inventory_hostname in nomad_servers) | ternary(nomad_servers, []) }}"
|
||||
bootstrap_expect: "{{ nomad_servers | length }}"
|
||||
ports:
|
||||
http: "{{ nomad_services.http_api.port }}"
|
||||
rpc: "{{ nomad_services.rpc.port }}"
|
||||
serf: "{{ nomad_services.serf.port }}"
|
||||
|
||||
# For example
|
||||
# nomad_extra_conf:
|
||||
|
Reference in New Issue
Block a user