Skip to content

Commit

Permalink
don't set data_directory in config when we configure it via env
Browse files Browse the repository at this point in the history
Fixes: #1576
  • Loading branch information
evgeni committed Feb 21, 2024
1 parent 411e7bc commit 7fa31c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/server/instance/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,11 @@
}
}

postgresql::server::config_entry { "data_directory_for_instance_${name}":
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}":
key => 'data_directory',
value => $datadir,
}
}
if $timezone {
postgresql::server::config_entry { "timezone_for_instance_${name}":
Expand Down

0 comments on commit 7fa31c2

Please sign in to comment.