Files
states/linux/MesAdmins.sls
2018-04-23 18:37:37 +00:00

16 lines
478 B
Plaintext

{% 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: False
- optional_groups:
- wheel
- sudo
{% endif %}