Hi,

I have now written an initial README.Debian that will be part of the
next upload.

Am Dienstag, den 11.12.2018, 00:37 +0000 schrieb
[email protected]:
> For example, Debian provides /etc/patroni/config.yml.in that contains
> constructs like @HOSTNAME@ --- is it intended that I as sysadmin copy
> this file to config.yml and fill in these placeholders, or is this
> done automatically as part of the initial startup process?

I was prototyping that so I wrote the documentation afterwards, sorry.

The idea is to run the pg_createconfig_patroni command for a desired
postgresql-common cluster (e.g. "10/main") which assembles a
configuration file specific for that cluster (/etc/patroni/10-main.yml)
out of /etc/patroni/dcs.yml (which needs to be edited) and
/etc/patroni/config.yml.in (which might work out of the box) by
substituting the @HOSTNAME@ etc. into the configuration file.

Afterwards you should be able to start patroni for that cluster with
"systemctl start patroni@10-main".

What currently doesn't work well is port assignment (it just assumed
5432 for now), I need to make that configurable via
pg_createconfig_patroni as well.  Bonus points for automatically
figuring out which one is the next free port.


Michael

-- 
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax:  +49 2166 9901-100
Email: [email protected]

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer

Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz

Reply via email to