You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-50Lines changed: 18 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,31 +39,6 @@ If this is not what you're expecting, set `purge` and/or `config_file_replace` t
39
39
}
40
40
```
41
41
42
-
#### Selective Purge of sudoers.d Directory
43
-
A combination of `prefix`, `suffix` and `purge_ignore` can be used to purge only files that puppet previously created.
44
-
If `suffix` is specified all puppet created sudoers.d entries will have this suffix apprended to
45
-
the thier file name. If `prefix` is specified all puppet created sudoers.d entries will have this prefix
46
-
prepended. A ruby glob can be used as `ignore` to ignore all files that do not have
47
-
this suffix.
48
-
49
-
```puppet
50
-
class{'sudo':
51
-
suffix => '_puppet',
52
-
purge_ignore => '*[!_puppet]',
53
-
}
54
-
```
55
-
56
-
or
57
-
58
-
```puppet
59
-
class{'sudo':
60
-
prefix => 'puppet_',
61
-
purge_ignore => '[!puppet_]*',
62
-
}
63
-
```
64
-
65
-
Due to limitations in ruby glob the prefix and ignore is recommended.
66
-
67
42
#### Leave current sudo config as it is
68
43
```puppet
69
44
class { 'sudo':
@@ -231,6 +206,22 @@ sudo::configs:
231
206
- 'ALL'
232
207
'commands':
233
208
- 'ALL'
209
+
210
+
##### Override sudoers defaults
211
+
212
+
You can modify `Default_Entry` lines by passing a `Hash` to `sudo::defaults`, where the key is `Defaults` parameter name (see `man 5 sudoers` for more details):
0 commit comments