Skip to content

Commit

Permalink
Merge pull request #303 from saz/drop-purge_ignore-from-README
Browse files Browse the repository at this point in the history
drop purge_ignore example, as it is not working as documented
  • Loading branch information
saz authored May 13, 2024
2 parents 47b8628 + 4720ba4 commit e5b821d
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit e5b821d

Please sign in to comment.