mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2023-07-03 15:00
This commit is contained in:
18
roles/vault/templates/consul-template.hcl.j2
Normal file
18
roles/vault/templates/consul-template.hcl.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
vault {
|
||||
address = "{{ vault_secrets.vault_address }}"
|
||||
token = "{{ vault_secrets.vault_token }}"
|
||||
unwrap_token = false
|
||||
}
|
||||
|
||||
{% if vault_secrets.nomad.enabled %}
|
||||
template {
|
||||
source = "{{ vault_root_dir }}/consul-template/nomad_client_bundle.pem.tpl"
|
||||
left_delimiter = "[["
|
||||
right_delimiter = "]]"
|
||||
destination = "{{ vault_root_dir }}/tls/nomad_client_bundle.pem"
|
||||
perms = 0600
|
||||
exec {
|
||||
command = "{{ vault_root_dir }}/bin/update_nomad_cert {{ vault_secrets.nomad.token }} {{ vault_secrets.vault_token }}"
|
||||
}
|
||||
}
|
||||
{% endif %}
|
Reference in New Issue
Block a user