diff --git a/sudoers/included.sls b/sudoers/included.sls index 1577730..8ad4263 100644 --- a/sudoers/included.sls +++ b/sudoers/included.sls @@ -9,7 +9,7 @@ include: {{ included_file }}: file.managed: - user: root - - group: root + - group: {{ pkgs.get('group', 'root') }} - mode: 440 - template: jinja - source: salt://sudoers/files/sudoers diff --git a/sudoers/init.sls b/sudoers/init.sls index 8f73c12..af5af86 100644 --- a/sudoers/init.sls +++ b/sudoers/init.sls @@ -7,7 +7,7 @@ sudo: {{ pkgs.get('config-path', '/etc') }}/sudoers: file.managed: - user: root - - group: root + - group: {{ pkgs.get('group', 'root') }} - mode: 440 - template: jinja - source: salt://sudoers/files/sudoers diff --git a/sudoers/package-map.jinja b/sudoers/package-map.jinja index bdbfd12..0961d07 100644 --- a/sudoers/package-map.jinja +++ b/sudoers/package-map.jinja @@ -8,7 +8,8 @@ 'Gentoo': {'sudo': 'app-admin/sudo'}, 'Mint': {'sudo': 'sudo'}, 'FreeBSD': {'sudo': 'sudo', - 'config-path': '/usr/local/etc/'} + 'config-path': '/usr/local/etc', + 'group': 'wheel'} } %} {% if 'package_table' in pillar %}