Mettre à jour 'linux/MesAdmins.sls'
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
Mise en place d'un administrateur universel:
|
||||
user.present:
|
||||
- name: {{ pillar['superadmusr'] }}
|
||||
- fullname: {{ pillar['superadmfn'] }}
|
||||
- shell: /bin/bash
|
||||
- home: /home/{{ pillar['superadmusr'] }}
|
||||
- createhome: True
|
||||
- password: {{ pillar['superadmpwd'] }}
|
||||
- hash_password: True
|
||||
- uid: 9876
|
||||
- gid_from_name: True
|
||||
- optional_groups:
|
||||
- wheel
|
||||
- sudo
|
||||
{% if grains['virtual'] == 'LXC' %}
|
||||
Mise en place d'un administrateur de containeur:
|
||||
user.present:
|
||||
- name: {{ pillar['superadmusr'] }}
|
||||
- fullname: {{ pillar['superadmfn'] }}
|
||||
- shell: /bin/bash
|
||||
- home: /home/{{ pillar['superadmusr'] }}
|
||||
- createhome: True
|
||||
- password: {{ pillar['superadmpwd'] }}
|
||||
- hash_password: True
|
||||
- uid: 9876
|
||||
- gid_from_name: True
|
||||
- optional_groups:
|
||||
- wheel
|
||||
- sudo
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user