Création du fichier
This commit is contained in:
28
Users/andre.sls
Normal file
28
Users/andre.sls
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
include:
|
||||||
|
- softwares.sudo
|
||||||
|
|
||||||
|
AndreUser:
|
||||||
|
user.present:
|
||||||
|
- name: andre
|
||||||
|
- fullname: André Duchamp
|
||||||
|
- allow_uid_change: True
|
||||||
|
- allow_gid_change: True
|
||||||
|
- uid: 3645
|
||||||
|
- gid: 3645
|
||||||
|
- 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 %}
|
||||||
Reference in New Issue
Block a user