From 2d19df9ac39cc2773b6c885f23c25988db084268 Mon Sep 17 00:00:00 2001 From: OKO Date: Tue, 24 Dec 2024 16:51:37 +0100 Subject: [PATCH] Purge and Recurse should be set together (#399) If you for whatever reason decide to change the value of purge, recurse should change with it. This is nothing new and the solution as it's implemented here is the same I have seen in other popular modules (saz-sudo, ghoneycutt-ssh) regarding the relation between purge and recurse. If you don't you can get unexpected behaviour. Related to #390 Co-authored-by: okopop --- manifests/server/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/config.pp b/manifests/server/config.pp index f7cef007..4b5f45fd 100644 --- a/manifests/server/config.pp +++ b/manifests/server/config.pp @@ -55,7 +55,7 @@ group => 0, mode => $ssh::server::include_dir_mode, purge => $ssh::server::include_dir_purge, - recurse => true, + recurse => $ssh::server::include_dir_purge, } $ssh::server::config_files.each |$file, $params| {