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

17 lines
283 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'] }}"
}
plugin_dir = "/opt/nomad_plugins"
plugin "nomad-driver-podman" {
enabled = true
}