mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-28 00:48:12 +01:00
Use correct pathname of visudo on FreeBSD
This commit is contained in:
parent
f46d2ca228
commit
672cd20672
@ -13,7 +13,7 @@ include:
|
|||||||
- mode: 440
|
- mode: 440
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://sudoers/files/sudoers
|
- source: salt://sudoers/files/sudoers
|
||||||
- check_cmd: /usr/sbin/visudo -c -f
|
- check_cmd: {{ sudoers.get('exec-prefix', '/usr/sbin') }}/visudo -c -f
|
||||||
- context:
|
- context:
|
||||||
included: True
|
included: True
|
||||||
sudoers: {{ spec|json }}
|
sudoers: {{ spec|json }}
|
||||||
|
@ -11,7 +11,7 @@ sudo:
|
|||||||
- mode: 440
|
- mode: 440
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://sudoers/files/sudoers
|
- source: salt://sudoers/files/sudoers
|
||||||
- check_cmd: /usr/sbin/visudo -c -f
|
- check_cmd: {{ sudoers.get('exec-prefix', '/usr/sbin') }}/visudo -c -f
|
||||||
- context:
|
- context:
|
||||||
included: False
|
included: False
|
||||||
- require:
|
- require:
|
||||||
|
@ -11,5 +11,6 @@
|
|||||||
'Suse': {'pkg': 'sudo'},
|
'Suse': {'pkg': 'sudo'},
|
||||||
'FreeBSD': {'pkg': 'sudo',
|
'FreeBSD': {'pkg': 'sudo',
|
||||||
'config-path': '/usr/local/etc',
|
'config-path': '/usr/local/etc',
|
||||||
|
'exec-prefix': '/usr/local/sbin',
|
||||||
'group': 'wheel'},
|
'group': 'wheel'},
|
||||||
}, merge=salt['pillar.get']('sudoers:lookup')) %}
|
}, merge=salt['pillar.get']('sudoers:lookup')) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user