postgresql icon indicating copy to clipboard operation
postgresql copied to clipboard

external_pid_file and stats_temp_directory set incorrectly when installing different version than 12 (default)

Open hrak opened this issue 2 years ago • 0 comments

: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:

  1. kitchen converge server-install-96-ubuntu-2004
  2. kitchen login
  3. cat /etc/postgresql/9.6/main/postgresql.conf
  4. 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

hrak avatar Sep 02 '21 13:09 hrak