0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-30 23:55:43 +01:00

the user's .ssh directory should be created if ssh_auth_file is supplied

This commit is contained in:
Cole Kowalski 2015-07-16 15:23:43 -04:00
parent 001e913e77
commit 7dda5571db

View File

@ -102,7 +102,7 @@ users_{{ name }}_user:
{% endfor %} {% endfor %}
{% if 'ssh_keys' in user or 'ssh_auth' in user or 'ssh_auth.absent' in user %} {% if 'ssh_keys' in user or 'ssh_auth' in user or 'ssh_auth_file' in user or 'ssh_auth.absent' in user %}
user_keydir_{{ name }}: user_keydir_{{ name }}:
file.directory: file.directory:
- name: {{ user.get('home', '/home/{0}'.format(name)) }}/.ssh - name: {{ user.get('home', '/home/{0}'.format(name)) }}/.ssh