0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 05:08:00 +01:00

Merge pull request #104 from leifcr/leifcr-user-group-patch

Use the primary group for the user when creating authorized_keys
This commit is contained in:
Forrest 2015-12-16 10:56:15 -08:00
commit 741b256684

View File

@ -195,7 +195,7 @@ users_authorized_keys_{{ name }}:
file.managed: file.managed:
- name: {{ home }}/.ssh/authorized_keys - name: {{ home }}/.ssh/authorized_keys
- user: {{ name }} - user: {{ name }}
- group: {{ name }} - group: {{ user_group }}
- mode: 600 - mode: 600
{% if 'ssh_auth_file' in user %} {% if 'ssh_auth_file' in user %}
- contents: | - contents: |