Skip to content

Commit

Permalink
Purge and Recurse should be set together (#399)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
okopop and okopop authored Dec 24, 2024
1 parent 2b5a2a4 commit 2d19df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 2d19df9

Please sign in to comment.