Skip to content

Commit 47b490e

Browse files
committed
Ensure that data_directory is set in the config. per GitHub user tbd - PR#510 / PR#494 that was filed against wrong module branch"
1 parent 5b836f5 commit 47b490e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

manifests/server/config.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$version = $postgresql::server::_version
1616
$manage_pg_hba_conf = $postgresql::server::manage_pg_hba_conf
1717
$manage_pg_ident_conf = $postgresql::server::manage_pg_ident_conf
18+
$datadir = $postgresql::server::datadir
1819

1920
if ($manage_pg_hba_conf == true) {
2021
# Prepare the main pg_hba file
@@ -100,6 +101,9 @@
100101
postgresql::server::config_entry { 'port':
101102
value => $port,
102103
}
104+
postgresql::server::config_entry { 'data_directory':
105+
value => $datadir,
106+
}
103107

104108
# RedHat-based systems hardcode some PG* variables in the init script, and need to be overriden
105109
# in /etc/sysconfig/pgsql/postgresql. Create a blank file so we can manage it with augeas later.

0 commit comments

Comments
 (0)