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 %}