Skip to content

Commit

Permalink
patroni.yml: use postgres tls path
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 28, 2024
1 parent 7d354d3 commit e191f9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions automation/roles/patroni/templates/patroni.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit e191f9c

Please sign in to comment.