瀏覽代碼

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

Use the primary group for the user when creating authorized_keys
tags/v0.45.0
Forrest 9 年之前
父節點
當前提交
741b256684
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      users/init.sls

+ 1
- 1
users/init.sls 查看文件

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

Loading…
取消
儲存