infra/ansible/roles/nomad_client/templates/nomad.hcl.j2

11 lines
195 B
Django/Jinja

datacenter = "{{ main_dc_name }}"
data_dir = "/opt/nomad"
client {
enabled = true
}
consul {
token = "{{ lookup('hashi_vault', 'secret=kv/data/nomad:data')['consul-acl-client'] }}"
}