spilo icon indicating copy to clipboard operation
spilo copied to clipboard

Hardcoded patroni.yml template

Open mommys-little-hacker opened this issue 7 years ago • 1 comments

I am currently trying to build custom patroni image with a few extensions. This implies adding some postgres.conf configuration directives into postgres.parameters in patroni.yml.

Since this file is autogenerated at container startup from a template, I need to change template directly in configure_spilo.py file. This means I have to manually keep my version of this script synced with upstream.

Is it possible to edit launch.sh to generate patroni.yml from template using envsubst from gettext-base package and remove it from configure_spilo.py?

mommys-little-hacker avatar Jul 02 '18 15:07 mommys-little-hacker

It does look like you can just template in your own config yaml file and reference it via either SPILO_CONFIGURATION or PATRONI_CONFIGURATION env vars: https://github.com/zalando/spilo/blob/c307996bea5a734481aebaf403aee31584aa366f/postgres-appliance/scripts/configure_spilo.py#L911

Legogris avatar Jul 17 '20 10:07 Legogris