commit | eb04f1e6e39bc47ef44c54700f80928a804c38a1 | [log] [tgz] |
---|---|---|
author | Jaroslav Steinhaisl <jaroslav.steinhaisl@t-mobile.cz> | Fri Oct 26 13:40:32 2018 +0200 |
committer | Jaroslav Steinhaisl <jaroslav.steinhaisl@t-mobile.cz> | Fri Oct 26 13:40:32 2018 +0200 |
tree | e9f0c79e9c4159d8d499eaa71869f41baf4fb335 | |
parent | adb2f07dd17ce134740a6e2139dc4d07be84d6d7 [diff] |
change logic when I define user.gid
diff --git a/linux/system/user.sls b/linux/system/user.sls index c63f91b..42086d5 100644 --- a/linux/system/user.sls +++ b/linux/system/user.sls
@@ -37,7 +37,11 @@ - password: {{ user.password }} - hash_password: {{ user.get('hash_password', False) }} {% endif %} + {%- if user.gid is defined and user.gid %} + - gid: {{ user.gid }} + {%- else %} - gid_from_name: true + {%- endif %} {%- if user.groups is defined %} - groups: {{ user.groups }} {%- endif %}