Initial FreeBSD support
This commit is contained in:
parent
f7f01e6714
commit
8fa0d85ac9
3 changed files with 14 additions and 10 deletions
|
@ -1,3 +1,5 @@
|
|||
{% from "sudoers/package-map.jinja" import pkgs with context %}
|
||||
|
||||
include:
|
||||
- sudoers
|
||||
|
||||
|
@ -15,5 +17,5 @@ include:
|
|||
included: True
|
||||
sudoers: {{ spec }}
|
||||
- require:
|
||||
- file: /etc/sudoers
|
||||
- file: {{ pkgs.get('config-path', '/etc') }}/sudoers
|
||||
{% endfor %}
|
||||
|
|
|
@ -4,7 +4,7 @@ sudo:
|
|||
pkg.installed:
|
||||
- name: {{ pkgs.sudo }}
|
||||
|
||||
/etc/sudoers:
|
||||
{{ pkgs.get('config-path', '/etc') }}/sudoers:
|
||||
file.managed:
|
||||
- user: root
|
||||
- group: root
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
'RedHat': {'sudo': 'sudo'},
|
||||
'Amazon': {'sudo': 'sudo'},
|
||||
'Gentoo': {'sudo': 'app-admin/sudo'},
|
||||
'Mint': {'sudo': 'sudo'}
|
||||
'Mint': {'sudo': 'sudo'},
|
||||
'FreeBSD': {'sudo': 'sudo',
|
||||
'config-path': '/usr/local/etc/'}
|
||||
} %}
|
||||
|
||||
{% if 'package_table' in pillar %}
|
||||
|
|
Loading…
Reference in a new issue