mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-05-21 21:49:35 +02:00
create /etc/sudoers.d dir
- make sure that /etc/sudoers.d/* files are created after the dir
This commit is contained in:
parent
93883cdcb6
commit
9100e2ed7a
@ -19,4 +19,5 @@ include:
|
||||
sudoers: {{ spec|json }}
|
||||
- require:
|
||||
- file: {{ sudoers.get('config-path', '/etc') }}/sudoers
|
||||
- file: {{ sudoers.get('config-path', '/etc') }}/sudoers.d
|
||||
{% endfor %}
|
||||
|
||||
@ -4,6 +4,14 @@ sudo:
|
||||
pkg.installed:
|
||||
- name: {{ sudoers.pkg }}
|
||||
|
||||
{{ sudoers.get('config-path', '/etc') }}/sudoers.d:
|
||||
file.directory:
|
||||
- user: root
|
||||
- group: {{ sudoers.get('group', 'root') }}
|
||||
- mode: 750
|
||||
- require:
|
||||
- pkg: sudo
|
||||
|
||||
{{ sudoers.get('config-path', '/etc') }}/sudoers:
|
||||
file.managed:
|
||||
- user: root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user