From f6685087b695ca62d21f532119d16e7218fbfdd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Mon, 19 Feb 2018 19:18:41 +0000 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'linux/MesAdmins.sls'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/MesAdmins.sls | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/linux/MesAdmins.sls b/linux/MesAdmins.sls index 3fbc0f1..0225715 100644 --- a/linux/MesAdmins.sls +++ b/linux/MesAdmins.sls @@ -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 \ No newline at end of file +{% 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 %} \ No newline at end of file