Browse Source

Don't add sudo group by default.

This formula doesn't really require the sudo group (unless
there are actually users in that group). Moreover, on FreeBSD
the 'admin' group would be wheel and not sudo.
tags/v0.45.0
Simon Lloyd 9 years ago
parent
commit
60e94564d1
2 changed files with 4 additions and 8 deletions
  1. +4
    -2
      users/init.sls
  2. +0
    -6
      users/sudo.sls

+ 4
- 2
users/init.sls View File

@@ -39,9 +39,11 @@ include:

{% for group in user.get('groups', []) %}
users_{{ name }}_{{ group }}_group:
group:
group.present:
- name: {{ group }}
- present
{% if group == 'sudo' %}
- system: True
{% endif %}
{% endfor %}

users_{{ name }}_user:

+ 0
- 6
users/sudo.sls View File

@@ -6,16 +6,10 @@ users_bash-package:
pkg.installed:
- name: {{ users.bash_package }}

users_sudo-group:
group.present:
- name: sudo
- system: True

users_sudo-package:
pkg.installed:
- name: {{ users.sudo_package }}
- require:
- group: users_sudo-group
- file: {{ users.sudoers_dir }}

users_{{ users.sudoers_dir }}:

Loading…
Cancel
Save