From 94aea06e5c4daf15a967b837f24e63c92cf8a4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Tue, 26 Feb 2019 21:04:57 +0100 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20du=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Users/henri.sls | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Users/henri.sls diff --git a/Users/henri.sls b/Users/henri.sls new file mode 100644 index 0000000..dc981db --- /dev/null +++ b/Users/henri.sls @@ -0,0 +1,29 @@ +include: + - softwares.sudo + +AndreUser: + user.present: + - name: henri + - fullname: Henri Clément + - allow_uid_change: True + - allow_gid_change: True + - uid: 3645 +# - gid: 3645 + - shell: /bin/bash + - hash_password: True + - password: IwanThibaud + - empty_password: True + - optional_groups: + - vboxusers + {% if grains['os_family'] == 'Debian' %} + {% if grains['os']== "Ubuntu" %} + - cdrom + - dip + - plugdev + - sambashare + - lpadmin + {% endif %} + {% elif grains['os_family'] == 'RedHat' %} +# - wheel + - printadmin + {% endif %} \ No newline at end of file