1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

FreeBSD support with group 0 being wheel, clean up config-path

This commit is contained in:
Jason Wolfe 2014-10-13 23:15:30 -07:00
parent 7d216f395f
commit 5f6395fc43
3 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@ include:
{{ included_file }}: {{ included_file }}:
file.managed: file.managed:
- user: root - user: root
- group: root - group: {{ pkgs.get('group', 'root') }}
- mode: 440 - mode: 440
- template: jinja - template: jinja
- source: salt://sudoers/files/sudoers - source: salt://sudoers/files/sudoers

View file

@ -7,7 +7,7 @@ sudo:
{{ pkgs.get('config-path', '/etc') }}/sudoers: {{ pkgs.get('config-path', '/etc') }}/sudoers:
file.managed: file.managed:
- user: root - user: root
- group: root - group: {{ pkgs.get('group', 'root') }}
- mode: 440 - mode: 440
- template: jinja - template: jinja
- source: salt://sudoers/files/sudoers - source: salt://sudoers/files/sudoers

View file

@ -8,7 +8,8 @@
'Gentoo': {'sudo': 'app-admin/sudo'}, 'Gentoo': {'sudo': 'app-admin/sudo'},
'Mint': {'sudo': 'sudo'}, 'Mint': {'sudo': 'sudo'},
'FreeBSD': {'sudo': 'sudo', 'FreeBSD': {'sudo': 'sudo',
'config-path': '/usr/local/etc/'} 'config-path': '/usr/local/etc',
'group': 'wheel'}
} %} } %}
{% if 'package_table' in pillar %} {% if 'package_table' in pillar %}