1
0
Fork 0
mirror of synced 2024-12-30 09:49:29 -05:00

Added archlinux support and improved lookup table

This commit is contained in:
Niels Abspoel 2015-01-01 23:19:47 +01:00
parent 78b8323716
commit c2265a81f6
2 changed files with 12 additions and 11 deletions

View file

@ -2,7 +2,7 @@
sudo:
pkg.installed:
- name: {{ sudoers.pkgs|json }}
- name: {{ sudoers.pkg }}
{{ sudoers.get('config-path', '/etc') }}/sudoers:
file.managed:

View file

@ -1,13 +1,14 @@
{% set sudoers = salt['grains.filter_by'])({
'Debian': {'sudo': 'sudo'},
'Ubuntu': {'sudo': 'sudo'},
'CentOS': {'sudo': 'sudo'},
'Fedora': {'sudo': 'sudo'},
'RedHat': {'sudo': 'sudo'},
'Amazon': {'sudo': 'sudo'},
'Gentoo': {'sudo': 'app-admin/sudo'},
'Mint': {'sudo': 'sudo'},
'FreeBSD': {'sudo': 'sudo',
{% set sudoers = salt['grains.filter_by']({
'Debian': {'pkg': 'sudo'},
'Ubuntu': {'pkg': 'sudo'},
'CentOS': {'pkg': 'sudo'},
'Fedora': {'pkg': 'sudo'},
'RedHat': {'pkg': 'sudo'},
'Amazon': {'pkg': 'sudo'},
'Gentoo': {'pkg': 'app-admin/sudo'},
'Mint': {'pkg': 'sudo'},
'Arch': {'pkg': 'sudo'},
'FreeBSD': {'pkg': 'sudo',
'config-path': '/usr/local/etc',
'group': 'wheel'},
}, merge=salt['pillar.get']('sudoers:lookup')) %}