puppetlabs/puppetlabs-postgresql — pull request #331 by ekohl (2013-12-16 02:21:27+00:00)
Title: Fixes #93: Ensure PGDATA env var for the init script

RedHat-based distros look in /etc/sysconfig/pgsql/postgresql or /etc/sysconfig/pgsql/postgresql-${version} for the PGDATA environment variable. This is passed on to the init script.

I should note that this is untested, but hopefully gets the ball rolling.