mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-10-10 04:36:34 +02:00
updated pillar lookup with map.jinja
This commit is contained in:
1 parent
0a1fab9f8a
commit
78b8323716
3 files changed
+10
-16
No files matched your search
+4
-4
@@ -1,13 +1,13 @@
|
||||
{% from "sudoers/package-map.jinja" import pkgs with context %}
|
||||
{% from "sudoers/map.jinja" import sudoers with context %}
|
||||
|
||||
sudo:
|
||||
pkg.installed:
|
||||
- name: {{ pkgs.sudo }}
|
||||
- name: {{ sudoers.pkgs|json }}
|
||||
|
||||
{{ pkgs.get('config-path', '/etc') }}/sudoers:
|
||||
{{ sudoers.get('config-path', '/etc') }}/sudoers:
|
||||
file.managed:
|
||||
- user: root
|
||||
- group: {{ pkgs.get('group', 'root') }}
|
||||
- group: {{ sudoers.get('group', 'root') }}
|
||||
- mode: 440
|
||||
- template: jinja
|
||||
- source: salt://sudoers/files/sudoers
|
||||
|
||||
Reference in new issue
Block a user