1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

Fixed default permissions for Debian-based distributions.

The code around lines 84 and 91 expects 'specs' to be a list,
but the defaults provide a single string value. This causes
wrong behavior if sudoers:users or sudoers:groups are not
specified in pillar.
This commit is contained in:
Andrew Vant 2014-10-01 11:03:54 -04:00
parent ba5fe97d2a
commit 8bf6d6711f

View file

@ -11,8 +11,8 @@
{%- set host_list_defaults = defaults.get('host_list', {}) %} {%- set host_list_defaults = defaults.get('host_list', {}) %}
{%- set command_list_defaults = defaults.get('command_list', {}) %} {%- set command_list_defaults = defaults.get('command_list', {}) %}
{%- set runas_list_defaults = defaults.get('runas_list', {}) %} {%- set runas_list_defaults = defaults.get('runas_list', {}) %}
{%- set users = sudoers.get('users', {'root': 'ALL=(ALL:ALL) ALL'}) %} {%- set users = sudoers.get('users', {'root': ['ALL=(ALL:ALL) ALL']}) %}
{%- set groups = sudoers.get('groups', {'sudo': 'ALL=(ALL:ALL) ALL'}) %} {%- set groups = sudoers.get('groups', {'sudo': ['ALL=(ALL:ALL) ALL']}) %}
{%- else %} {%- else %}
{%- set defaults = sudoers.get('defaults', {}) %} {%- set defaults = sudoers.get('defaults', {}) %}
{%- set generic_defaults = defaults.get('generic', []) %} {%- set generic_defaults = defaults.get('generic', []) %}