Skip to content

Commit

Permalink
Update vip-manager.yml.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 27, 2024
1 parent 38b384d commit 71e33f1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions automation/roles/vip-manager/templates/vip-manager.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,10 @@ etcd-password: {{ patroni_etcd_password | default("") }}
{% endif %}
{% if tls_cert_generate | default(false) | bool %}
# when etcd-ca-file is specified, TLS connections to the etcd endpoints will be used.
etcd-ca-file: {{ tls_ca_cert_path | default('/etc/tls/ca.crt') }}
{% endif %}
{% if tls_cert_generate | default(false) | bool %}
etcd-ca-file: {{ tls_etcd_ca_cert_path | default('/etc/etcd/ca.crt') }}
# when etcd-cert-file and etcd-key-file are specified, we will authenticate at the etcd endpoints using this certificate and key.
etcd-cert-file: {{ tls_cert_path | default('/etc/tls/server.crt') }}
{% endif %}
{% if tls_cert_generate | default(false) | bool %}
etcd-key-file: {{ tls_privatekey_path | default('/etc/tls/server.key') }}
etcd-cert-file: {{ tls_etcd_cert_path | default('/etc/etcd/server.crt') }}
etcd-key-file: {{ tls_etcd_privatekey_path | default('/etc/etcd/server.key') }}
{% endif %}
{% endif %}

Expand Down

0 comments on commit 71e33f1

Please sign in to comment.