From 3711cce71fa82bc824a1cebdde5c15a42bcd3e08 Mon Sep 17 00:00:00 2001 From: okopop Date: Thu, 19 Dec 2024 16:01:54 +0100 Subject: [PATCH] Purge and Recurse should be set together 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 --- 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| {