Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop purge_ignore example, as it is not working as documented #303

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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