renew_nomad_certificates/templates/nomad_config.hcl.j2

34 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-05-01 21:02:35 +00:00
vault {
address = "{{ renew_nomad_certificates_vault_addr }}"
token = "{{ renew_nomad_certificates_vault_token }}"
unwrap_token = {{ renew_nomad_certificates_vault_token_unwrap|lower }}
renew_token = {{ renew_nomad_certificates_vault_token_renew|lower }}
}
template {
source = "{{ renew_nomad_certificates_config_dir }}/templates/nomad_ca.pem.tpl"
destination = "{{ renew_nomad_certificates_ca_dest }}"
perms = 0700
user = "{{ renew_nomad_certificates_nomad_user }}"
group = "{{ renew_nomad_certificates_nomad_group }}"
2023-05-03 19:05:46 +00:00
command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '"
2023-05-01 21:02:35 +00:00
}
template {
source = "{{ renew_nomad_certificates_config_dir }}/templates/nomad_cert.pem.tpl"
destination = "{{ renew_nomad_certificates_cert_dest }}"
perms = 0700
user = "{{ renew_nomad_certificates_nomad_user }}"
group = "{{ renew_nomad_certificates_nomad_group }}"
2023-05-03 19:05:46 +00:00
command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '"
2023-05-01 21:02:35 +00:00
}
template {
source = "{{ renew_nomad_certificates_config_dir }}/templates/nomad_key.pem.tpl"
destination = "{{ renew_nomad_certificates_key_dest }}"
perms = 0700
user = "{{ renew_nomad_certificates_nomad_user }}"
group = "{{ renew_nomad_certificates_nomad_group }}"
2023-05-03 19:05:46 +00:00
command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '"
2023-05-01 21:02:35 +00:00
}