From 48756475514e5c9342a6d9fbbd160b347546f5dc Mon Sep 17 00:00:00 2001 From: Sergey Lavrinenko Date: Wed, 27 Sep 2023 00:07:36 +0300 Subject: [PATCH] confd: add 'basic_auth' flag for etcd authorization (#475) --- roles/confd/templates/confd.toml.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/confd/templates/confd.toml.j2 b/roles/confd/templates/confd.toml.j2 index 961a180a8..e27d66f9b 100644 --- a/roles/confd/templates/confd.toml.j2 +++ b/roles/confd/templates/confd.toml.j2 @@ -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 %} \ No newline at end of file