From ffcdc070fa62fa569ef10298790c0bc8ab2bf252 Mon Sep 17 00:00:00 2001 From: Simon Hoenscheid Date: Thu, 31 Aug 2023 11:37:55 +0200 Subject: [PATCH] make path configurable for config_entry --- manifests/server/config_entry.pp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/manifests/server/config_entry.pp b/manifests/server/config_entry.pp index 1849695621..65cd68315c 100644 --- a/manifests/server/config_entry.pp +++ b/manifests/server/config_entry.pp @@ -9,15 +9,8 @@ Enum['present', 'absent'] $ensure = 'present', String[1] $key = $name, Optional[Variant[String[1], Numeric, Array[String[1]]]] $value = undef, - Variant[Boolean, String[1]] $path = false + Stdlib::Absolutepath $path = $postgresql::server::postgresql_conf_path ) { - $postgresql_conf_path = $postgresql::server::postgresql_conf_path - - $target = $path ? { - false => $postgresql_conf_path, - default => $path, - } - # Those are the variables that are marked as "(change requires restart)" # on postgresql.conf. Items are ordered as on postgresql.conf. # @@ -91,7 +84,7 @@ postgresql_conf { $name: ensure => $ensure, - target => $target, + target => $path, name => $key, value => $value, require => Class['postgresql::server::initdb'],