2023-04-16 20:26:14 +00:00
|
|
|
vault {
|
|
|
|
address = "{{ renew_vault_certificates_vault_addr }}"
|
2023-04-16 20:30:59 +00:00
|
|
|
token = "{{ renew_vault_certificates_vault_token }}"
|
|
|
|
unwrap_token = {{ renew_vault_certificates_vault_token_unwrap|lower }}
|
|
|
|
renew_token = {{ renew_vault_certificates_vault_token_renew|lower }}
|
2023-04-16 20:26:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template {
|
2023-04-26 16:08:31 +00:00
|
|
|
source = "{{ renew_vault_certificates_config_dir }}/templates/vault_cert.pem.tpl"
|
2023-04-16 22:31:28 +00:00
|
|
|
destination = "{{ renew_vault_certificates_cert_dest }}"
|
2023-04-16 20:26:14 +00:00
|
|
|
perms = 0700
|
2023-04-16 22:31:28 +00:00
|
|
|
user = "{{ renew_vault_certificates_vault_user }}"
|
|
|
|
group = "{{ renew_vault_certificates_vault_group }}"
|
2023-04-16 22:33:03 +00:00
|
|
|
command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_vault_certificates_info['common_name'] }}\" && pkill -SIGHUP vault '"
|
2023-04-16 20:26:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template {
|
2023-04-26 16:16:58 +00:00
|
|
|
source = "{{ renew_vault_certificates_config_dir }}/templates/vault_key.pem.tpl"
|
2023-04-16 22:31:28 +00:00
|
|
|
destination = "{{ renew_vault_certificates_key_dest }}"
|
2023-04-16 20:26:14 +00:00
|
|
|
perms = 0700
|
2023-04-16 22:31:28 +00:00
|
|
|
user = "{{ renew_vault_certificates_vault_user }}"
|
|
|
|
group = "{{ renew_vault_certificates_vault_group }}"
|
2023-04-16 22:33:03 +00:00
|
|
|
command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_vault_certificates_info['common_name'] }}\" && pkill -SIGHUP vault '"
|
2023-04-16 20:26:14 +00:00
|
|
|
}
|