From 99a53316b3dfda4da4f5debea7faaab61d268304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sun, 30 Dec 2018 10:57:30 +0100 Subject: [PATCH] More groups --- Users/anais.sls | 1 + Users/aristide.sls | 25 +++++++++++++++++++++++++ Users/iwan.sls | 1 + 3 files changed, 27 insertions(+) create mode 100644 Users/aristide.sls diff --git a/Users/anais.sls b/Users/anais.sls index 236fe2f..78581ee 100644 --- a/Users/anais.sls +++ b/Users/anais.sls @@ -11,6 +11,7 @@ AnaisUser: # - password: Monpremiermotdepasse - empty_password: True - optional_groups: + - vboxusers {% if grains['os_family'] == 'Debian' %} - sudo {% if grains['os']== "Ubuntu" %} diff --git a/Users/aristide.sls b/Users/aristide.sls new file mode 100644 index 0000000..051412e --- /dev/null +++ b/Users/aristide.sls @@ -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 %} \ No newline at end of file diff --git a/Users/iwan.sls b/Users/iwan.sls index 2575835..c9e51f0 100644 --- a/Users/iwan.sls +++ b/Users/iwan.sls @@ -6,6 +6,7 @@ IwanUser: - name: iwan - fullname: Iwan CLEMENT - optional_groups: + - vboxusers {% if grains['os_family'] == 'Debian' %} - sudo {% if grains['os']== "Ubuntu" %}