From 4720ba4ae0315e32c0f460a7ba6084c27b24ccb8 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Mon, 13 May 2024 14:50:35 +0200 Subject: [PATCH] remove purge_ignore example from README, as it is not working as documented --- README.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/README.md b/README.md index c9a0b04..06cdcc6 100644 --- a/README.md +++ b/README.md @@ -39,31 +39,6 @@ If this is not what you're expecting, set `purge` and/or `config_file_replace` t } ``` -#### Selective Purge of sudoers.d Directory -A combination of `prefix`, `suffix` and `purge_ignore` can be used to purge only files that puppet previously created. -If `suffix` is specified all puppet created sudoers.d entries will have this suffix apprended to -the thier file name. If `prefix` is specified all puppet created sudoers.d entries will have this prefix -prepended. A ruby glob can be used as `ignore` to ignore all files that do not have -this suffix. - -```puppet - class{'sudo': - suffix => '_puppet', - purge_ignore => '*[!_puppet]', - } -``` - -or - -```puppet - class{'sudo': - prefix => 'puppet_', - purge_ignore => '[!puppet_]*', - } -``` - -Due to limitations in ruby glob the prefix and ignore is recommended. - #### Leave current sudo config as it is ```puppet class { 'sudo':