Rich configuration options
Goal
Improve configuration options for Postgres (and other engines in the future).
Currently we support configuration of two files: pg_hba.conf
and postgresql.conf
. pg_hba.conf
in PGDATA being substituted with the the presented file. And in case of postgresql.conf
lines being appended to the end of files.
Discuss with @NikolayS
TODO / How to implement
files:
- path: pg_hba.conf
replaceWithPath: ./configs/postgres/pg_hba.conf
- path: postgresql.conf
append:
- listen_addresses = '*'
- log_destination = 'stderr'
remove:
- logging_collector
- data_directory
comment:
- ssl
commentWith: "#"
- path: standby.signal
delete: true
# Move to separate issue. Would be nice to have an option to configure such configuration substitute logic and configure custom script that will be launched at different provision stages.
# Requires discussion.
scripts:
- runner: pg
script:
- select 1;
- select 2;
- runner: bash
script:
- chown user file.txt
- runner: bash
fromFile: ./scripts/prepareClone.sh
Acceptance criteria
Edited by Anatoly Stansler