Skip to content

Commit

Permalink
confd: add 'basic_auth' flag for etcd authorization (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavr authored Sep 26, 2023
1 parent de4d400 commit 4875647
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions roles/confd/templates/confd.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ nodes = [
]
{% if dcs_exists|bool and dcs_type == 'etcd' %}
{% if patroni_etcd_username | default('') | length > 0 %}
basic_auth = true
username = "{{ patroni_etcd_username | default('') }}"
{% endif %}
{% if patroni_etcd_password | default('') | length > 0 %}
password = "{{ patroni_etcd_password }}"
password = "{{ patroni_etcd_password | default('') }}"
{% endif %}
{% endif %}

0 comments on commit 4875647

Please sign in to comment.