création du fichier

This commit is contained in:
Iwan Clément
2019-02-26 21:04:57 +01:00
parent 09d786b7d5
commit 94aea06e5c

29
Users/henri.sls Normal file
View File

@@ -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 %}