Found this problem on Ubuntu, but as I see in #930016
pg_createconfig_patroni is maintained here.
I'm using etcd with TLS, so I've added cacert and other options to dcs.yml:
etcd3:
cacert: "/var/lib/etcd/investplatform.pki/ca.pem"
cert: "/var/lib/etcd/investplatform.pki/cf-pve2-patroni.pem"
key: "/var/lib/etcd/investplatform.pki/cf-pve2-patroni-key.pem"
protocol: https
hosts:
- 172.20.11.53:2379
- 172.20.11.51:2379
- 172.20.11.52:2379
Now pg_createconfig_patroni fails with the following error:
pg_createconfig_patroni --force --hostip=172.20.11.51 --port=5432
--vip=172.20.11.100 15 test
sed: -e expression #10, char 36: unknown option to `s'
sed: -e expression #6, char 18: unterminated `s' command
Both 15-test.vip and 15-test.yml appear empty. To fix this issue I've used
the patch in the attachment. Please, apply.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
--
Peter.