don't set data_directory in config when we configure it via env#1577
don't set data_directory in config when we configure it via env#1577evgeni wants to merge 1 commit intopuppetlabs:mainfrom
Conversation
|
I'm not sure the systemd check is relevant. Debian also starts it via systemd, but somehow does read Debian uses The official postgresql.org packages on Red Hat match what the distro packages do: Environment=PGDATA=/var/lib/pgsql/13/data/
ExecStart=/usr/pgsql-13/bin/postmaster -D ${PGDATA} |
Well, this is where we set PGDATA explicitly. So it was a safe start.
"good" |
| key => 'data_directory', | ||
| value => $datadir, | ||
| unless $facts['service_provider'] == 'systemd' and $facts['os']['family'] in ['RedHat', 'Gentoo'] { | ||
| postgresql::server::config_entry { "data_directory_for_instance_${name}": |
There was a problem hiding this comment.
For upgrades, should we ensure it's absent on systemd + RH/Gentoo?
Fixes: #1576
Summary
see subject and linked issue
Additional Context
Add any additional context about the problem here.
Related Issues (if any)
#1576
Checklist
puppet apply)