mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-27 07:33:18 +02:00
7 lines
472 B
Django/Jinja
7 lines
472 B
Django/Jinja
[[- 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 -]]
|