Skip to content

Commit

Permalink
Update patroni.yml.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 28, 2024
1 parent d8c6067 commit 7d354d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automation/roles/patroni/templates/patroni.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ etcd3:
{% if dcs_exists|bool %}
hosts: {% for etcd_hosts in patroni_etcd_hosts %}{{etcd_hosts.host}}:{{etcd_hosts.port}}{% if not loop.last %},{% endif %}{% endfor %}
{% endif %}

{% 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') }}
{% endif %}

{% if patroni_etcd_username | default('') | length > 0 %}
username: {{ patroni_etcd_username | default('') }}
{% endif %}
Expand Down

0 comments on commit 7d354d3

Please sign in to comment.