ansible-nomad/templates/config.hcl.j2

34 lines
593 B
Plaintext
Raw Normal View History

2022-03-13 15:03:33 +00:00
data_dir = "{{ nomad_data_dir}}"
bind_addr = "{{ nomad_bind_addr }}"
datacenter = "{{ nomad_datacenter }}"
server {
enabled = true
bootstrap_expect = {{ nomad_bootstrap_expect }}
}
client {
enabled = true
}
plugin "raw_exec" {
config {
enabled = true
}
}
consul {
address = "127.0.0.1:8500"
}
2022-03-22 17:38:02 +00:00
{% if nomad_vault_enabled %}
vault {
enabled = true
address = {{ nomad_vault_address}}
create_from_role = {{ nomad_vault_role }}
token = {{ nomad_vault_token }}
namespace = {{ nomad_vault_namespace}}
task_token_ttl = {{ nomad_vault_token_ttl }}
}
{% endif %}