From 548b77b3398e48be3985abb1d476be295e67ebad Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Fri, 5 May 2023 22:56:48 +0200 Subject: [PATCH] added consul reload back, with env variable file --- templates/consul_config.hcl.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/consul_config.hcl.j2 b/templates/consul_config.hcl.j2 index 1077711..cf34570 100644 --- a/templates/consul_config.hcl.j2 +++ b/templates/consul_config.hcl.j2 @@ -11,7 +11,7 @@ template { perms = 0700 user = "{{ renew_consul_certificates_consul_user }}" group = "{{ renew_consul_certificates_consul_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && pkill -SIGHUP consul '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && consul reload '" } template { @@ -20,7 +20,7 @@ template { perms = 0700 user = "{{ renew_consul_certificates_consul_user }}" group = "{{ renew_consul_certificates_consul_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && pkill -SIGHUP consul '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && consul reload '" } template { @@ -29,5 +29,5 @@ template { perms = 0700 user = "{{ renew_consul_certificates_consul_user }}" group = "{{ renew_consul_certificates_consul_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && pkill -SIGHUP consul '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_consul_certificates_info['common_name'] }}\" && consul reload '" }