mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-27 22:38:22 +01:00
Merge pull request #36 from Perceptyx/remove_dashes_from_variables
Remove dashes from variables.
This commit is contained in:
commit
10d7127c9a
@ -18,5 +18,5 @@ include:
|
||||
included: True
|
||||
sudoers: {{ spec|json }}
|
||||
- require:
|
||||
- file: {{ sudoers.get('config-path', '/etc') }}/sudoers
|
||||
- file: {{ sudoers.get('configpath', '/etc') }}/sudoers
|
||||
{% endfor %}
|
||||
|
@ -4,14 +4,14 @@ sudo:
|
||||
pkg.installed:
|
||||
- name: {{ sudoers.pkg }}
|
||||
|
||||
{{ sudoers.get('config-path', '/etc') }}/sudoers:
|
||||
{{ sudoers.get('configpath', '/etc') }}/sudoers:
|
||||
file.managed:
|
||||
- user: root
|
||||
- group: {{ sudoers.get('group', 'root') }}
|
||||
- mode: 440
|
||||
- template: jinja
|
||||
- source: salt://sudoers/files/sudoers
|
||||
- check_cmd: {{ sudoers.get('exec-prefix', '/usr/sbin') }}/visudo -c -f
|
||||
- check_cmd: {{ sudoers.get('execprefix', '/usr/sbin') }}/visudo -c -f
|
||||
- context:
|
||||
included: False
|
||||
- require:
|
||||
|
@ -10,7 +10,7 @@
|
||||
'Arch': {'pkg': 'sudo'},
|
||||
'Suse': {'pkg': 'sudo'},
|
||||
'FreeBSD': {'pkg': 'sudo',
|
||||
'config-path': '/usr/local/etc',
|
||||
'exec-prefix': '/usr/local/sbin',
|
||||
'configpath': '/usr/local/etc',
|
||||
'execprefix': '/usr/local/sbin',
|
||||
'group': 'wheel'},
|
||||
}, merge=salt['pillar.get']('sudoers:lookup')) %}
|
||||
|
Loading…
Reference in New Issue
Block a user