Skip to content

Commit 9ce7649

Browse files
make path configurable for config_entry
1 parent 4f1d08f commit 9ce7649

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

manifests/server/config_entry.pp

+2-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@
99
Enum['present', 'absent'] $ensure = 'present',
1010
String[1] $key = $name,
1111
Optional[Variant[String[1], Numeric, Array[String[1]]]] $value = undef,
12-
Variant[Boolean, String[1]] $path = false
12+
Variant[String[1], Stdlib::Absolutepath] $path = $postgresql::server::postgresql_conf_path
1313
) {
14-
$postgresql_conf_path = $postgresql::server::postgresql_conf_path
15-
16-
$target = $path ? {
17-
false => $postgresql_conf_path,
18-
default => $path,
19-
}
20-
2114
# Those are the variables that are marked as "(change requires restart)"
2215
# on postgresql.conf. Items are ordered as on postgresql.conf.
2316
#
@@ -91,7 +84,7 @@
9184

9285
postgresql_conf { $name:
9386
ensure => $ensure,
94-
target => $target,
87+
target => $path,
9588
name => $key,
9689
value => $value,
9790
require => Class['postgresql::server::initdb'],

0 commit comments

Comments
 (0)