--- # Version of Nomad to install nomad_version: 1.3.2 # URL of the archive nomad_archive_url: https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip # Expected sha256 of the archive nomad_archive_sha256: fc6b3800935c621633d98148ea30737ab8ac1f698020f45b28b07ac61fbf4a96 # Root dir where Nomad will be installed nomad_root_dir: /opt/nomad # user under which nomad will run. # Servers can run under an unprivileged user, while clients should run as root (or with equivalent privileges) nomad_user: "{{ nomad_client_enabled | ternary('root', 'nomad') }}" # List of nomad servers (not clients !) nomad_servers: [] # Should client be enabled nomad_client_enabled: "{{ (inventory_hostname in nomad_servers) | ternary(False, True) }}" # Should server be enabled nomad_server_enabled: "{{ (inventory_hostname in nomad_servers) | ternary(True, False) }}" # Log level of the daemon nomad_log_level: INFO # Ports used by Nomad, the protocols, and the list of IP/CIDR for which the ports will be opened in the firewall # You can also specify which address/port to advertise (not needed most of the time) nomad_base_services: http: port: 4646 proto: [tcp] src_ip: [] # advertise: 10.11.12.13:4347 rpc: port: 4647 proto: [tcp] src_ip: [] # advertise: serf: port: 4648 proto: [tcp,udp] src_ip: [] # advertise: x.x.x.x nomad_extra_services: {} nomad_services: "{{ nomad_base_services | combine(nomad_extra_services, recursive=True) }}"