Skip to content

Commit 7fa31c2

Browse files
committed
don't set data_directory in config when we configure it via env
Fixes: #1576
1 parent 411e7bc commit 7fa31c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manifests/server/instance/config.pp

+5-3
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,11 @@
219219
}
220220
}
221221

222-
postgresql::server::config_entry { "data_directory_for_instance_${name}":
223-
key => 'data_directory',
224-
value => $datadir,
222+
unless $facts['service_provider'] == 'systemd' and $facts['os']['family'] in ['RedHat', 'Gentoo'] {
223+
postgresql::server::config_entry { "data_directory_for_instance_${name}":
224+
key => 'data_directory',
225+
value => $datadir,
226+
}
225227
}
226228
if $timezone {
227229
postgresql::server::config_entry { "timezone_for_instance_${name}":

0 commit comments

Comments
 (0)