mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-28 00:48:12 +01:00
Merge pull request #9 from virtru-ops/master
Correctly set variables for template
This commit is contained in:
commit
24ae95394f
@ -6,6 +6,11 @@
|
||||
'mail_badpass',
|
||||
'secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"'
|
||||
]}) %}
|
||||
{%- set generic_defaults = defaults.get('generic', []) %}
|
||||
{%- set user_list_defaults = defaults.get('user_list', {}) %}
|
||||
{%- set host_list_defaults = defaults.get('host_list', {}) %}
|
||||
{%- set command_list_defaults = defaults.get('command_list', {}) %}
|
||||
{%- set runas_list_defaults = defaults.get('runas_list', {}) %}
|
||||
{%- set users = sudoers.get('users', {'root': 'ALL=(ALL:ALL) ALL'}) %}
|
||||
{%- set groups = sudoers.get('groups', {'sudo': 'ALL=(ALL:ALL) ALL'}) %}
|
||||
{%- else %}
|
||||
|
Loading…
Reference in New Issue
Block a user