postgresql
postgresql copied to clipboard
external_pid_file and stats_temp_directory set incorrectly when installing different version than 12 (default)
:ghost: Brief Description
When installing a different version than is the default, external_pid_file
and stats_temp_directory
are set incorrectly by default. The only way to fix this is to set them explicitly.
:pancakes: Cookbook version
9.0.3
:woman_cook: Chef-Infra Version
17.4.18
:tophat: Platform details
Ubuntu 20.04
Steps To Reproduce
Steps to reproduce the behavior:
-
kitchen converge server-install-96-ubuntu-2004
-
kitchen login
-
cat /etc/postgresql/9.6/main/postgresql.conf
- See version 12 mentioned in external_pid_file and stats_temp_directory
data_directory = '/var/lib/postgresql/9.6/main'
hba_file = '/etc/postgresql/9.6/main/pg_hba.conf'
ident_file = '/etc/postgresql/9.6/main/pg_ident.conf'
external_pid_file = '/var/run/postgresql/12-main.pid'
stats_temp_directory = '/var/run/postgresql/12-main.pg_stat_tmp'
port = 5432
:police_car: Expected behavior
external_pid_file
& stats_temp_directory
pointing to version 9.6