More groups

This commit is contained in:
Iwan Clément
2018-12-30 10:57:30 +01:00
parent 0b7308ed3c
commit 99a53316b3
3 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ AnaisUser:
# - password: Monpremiermotdepasse
- empty_password: True
- optional_groups:
- vboxusers
{% if grains['os_family'] == 'Debian' %}
- sudo
{% if grains['os']== "Ubuntu" %}

25
Users/aristide.sls Normal file
View File

@@ -0,0 +1,25 @@
include:
- softwares.sudo
AristideUser:
user.present:
- name: aristide
- fullname: Aristide Clement
- uid: 4629
- shell: /bin/bash
# - hash_password: True
# - password: Monpremiermotdepasse
- empty_password: True
- optional_groups:
- vboxusers
{% if grains['os_family'] == 'Debian' %}
{% if grains['os']== "Ubuntu" %}
- cdrom
- dip
- plugdev
- sambashare
{% endif %}
{% elif grains['os_family'] == 'RedHat' %}
- wheel
- printadmin
{% endif %}

View File

@@ -6,6 +6,7 @@ IwanUser:
- name: iwan
- fullname: Iwan CLEMENT
- optional_groups:
- vboxusers
{% if grains['os_family'] == 'Debian' %}
- sudo
{% if grains['os']== "Ubuntu" %}