Mettre à jour 'linux/MesAdmins.sls'

This commit is contained in:
Iwan Clément
2018-02-19 19:18:41 +00:00
parent f7d310f19b
commit f6685087b6

View File

@@ -1,14 +1,16 @@
Mise en place d'un administrateur universel: {% if grains['virtual'] == 'LXC' %}
user.present: Mise en place d'un administrateur de containeur:
- name: {{ pillar['superadmusr'] }} user.present:
- fullname: {{ pillar['superadmfn'] }} - name: {{ pillar['superadmusr'] }}
- shell: /bin/bash - fullname: {{ pillar['superadmfn'] }}
- home: /home/{{ pillar['superadmusr'] }} - shell: /bin/bash
- createhome: True - home: /home/{{ pillar['superadmusr'] }}
- password: {{ pillar['superadmpwd'] }} - createhome: True
- hash_password: True - password: {{ pillar['superadmpwd'] }}
- uid: 9876 - hash_password: True
- gid_from_name: True - uid: 9876
- optional_groups: - gid_from_name: True
- wheel - optional_groups:
- sudo - wheel
- sudo
{% endif %}