diff --git a/users/init.sls b/users/init.sls index 6bd2c1c..c8e5136 100644 --- a/users/init.sls +++ b/users/init.sls @@ -89,7 +89,9 @@ users_{{ name }}_user: {% endif %} user.present: - name: {{ name }} + {% if user.get('createhome', True) -%} - home: {{ home }} + {% endif -%} - shell: {{ user.get('shell', current.get('shell', users.get('shell', '/bin/bash'))) }} {% if 'uid' in user -%} - uid: {{ user['uid'] }}