From 1bc98216a4a508cbc4a6778e80af283bf43814cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sun, 30 Dec 2018 10:59:50 +0100 Subject: [PATCH] Not admins --- Users/aristide.sls | 2 +- Users/nadine.sls | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Users/nadine.sls diff --git a/Users/aristide.sls b/Users/aristide.sls index 051412e..1da8dd2 100644 --- a/Users/aristide.sls +++ b/Users/aristide.sls @@ -20,6 +20,6 @@ AristideUser: - sambashare {% endif %} {% elif grains['os_family'] == 'RedHat' %} - - wheel +# - wheel - printadmin {% endif %} \ No newline at end of file diff --git a/Users/nadine.sls b/Users/nadine.sls new file mode 100644 index 0000000..eabb4bf --- /dev/null +++ b/Users/nadine.sls @@ -0,0 +1,25 @@ +include: + - softwares.sudo + +NadineUser: + user.present: + - name: nadine + - fullname: Nadine Clement + - uid: 5829 + - 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