mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-27 22:38:22 +01:00
Merge pull request #28 from durchblicker/master
add sudoers file check with visudo
This commit is contained in:
commit
f46d2ca228
@ -13,6 +13,7 @@ include:
|
||||
- mode: 440
|
||||
- template: jinja
|
||||
- source: salt://sudoers/files/sudoers
|
||||
- check_cmd: /usr/sbin/visudo -c -f
|
||||
- context:
|
||||
included: True
|
||||
sudoers: {{ spec|json }}
|
||||
|
@ -11,6 +11,7 @@ sudo:
|
||||
- mode: 440
|
||||
- template: jinja
|
||||
- source: salt://sudoers/files/sudoers
|
||||
- check_cmd: /usr/sbin/visudo -c -f
|
||||
- context:
|
||||
included: False
|
||||
- require:
|
||||
|
Loading…
Reference in New Issue
Block a user