From e191f9c1ecedbbd5311dcb5d4f124215bedf18ce Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sat, 28 Dec 2024 12:37:38 +0000 Subject: [PATCH] patroni.yml: use postgres tls path --- automation/roles/patroni/templates/patroni.yml.j2 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/automation/roles/patroni/templates/patroni.yml.j2 b/automation/roles/patroni/templates/patroni.yml.j2 index c06b1304f..d90145179 100644 --- a/automation/roles/patroni/templates/patroni.yml.j2 +++ b/automation/roles/patroni/templates/patroni.yml.j2 @@ -46,11 +46,10 @@ etcd3: {% if tls_cert_generate | default(false) | bool %} protocol: https - cacert: {{ tls_etcd_ca_cert_path | default('/etc/etcd/tls/ca.crt') }} - cert: {{ tls_etcd_cert_path | default('/etc/etcd/tls/server.crt') }} - key: {{ tls_etcd_privatekey_path | default('/etc/etcd/tls/server.key') }} + cacert: {{ tls_ca_cert_path | default(postgresql_home_dir + '/tls/ca.crt') }} + cert: {{ tls_cert_path | default(postgresql_home_dir + '/tls/server.crt') }} + key: {{ tls_privatekey_path | default(postgresql_home_dir + '/tls/server.key') }} {% endif %} - {% if patroni_etcd_username | default('') | length > 0 %} username: {{ patroni_etcd_username | default('') }} {% endif %}