mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 07:09:42 +02:00
Update to 2023-07-08 16:00
This commit is contained in:
6
roles/vault_agent/templates/nomad/cli_bundle.pem.tpl.j2
Normal file
6
roles/vault_agent/templates/nomad/cli_bundle.pem.tpl.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
[[ with pkiCert "{{ vault_agent_nomad.nomad_pki.path }}/issue/{{ vault_agent_nomad.nomad_pki.role }}" "common_name=cli-{{ ansible_fqdn | regex_replace('\\.', '-') }}.{{ nomad_conf.region | default('global') }}.nomad" ]]
|
||||
[[ .Cert ]]
|
||||
[[ .Key ]]
|
||||
[[ .Cert | writeToFile "{{ nomad_root_dir }}/tls/cli.crt" "{{ nomad_user }}" "{{ nomad_user }}" "0644" ]]
|
||||
[[ .Key | writeToFile "{{ nomad_root_dir }}/tls/cli.key" "{{ nomad_user }}" "{{ nomad_user }}" "0640" ]]
|
||||
[[ end ]]
|
Reference in New Issue
Block a user