Skip to content

Commit ffcdc07

Browse files
make path configurable for config_entry
1 parent 934c5bb commit ffcdc07

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

manifests/server/config_entry.pp

Lines changed: 2 additions & 9 deletions
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+
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy