Selaa lähdekoodia

Use the primary group for the user when creating authorized_keys

If a primary group is set on the user, and a authorized_keys is provied in ssh_auth_file, the formula fails. This solves that by using the user_group set earlier in the formula
tags/v0.45.0
Leif Ringstad 9 vuotta sitten
vanhempi
commit
90021bf848
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      users/init.sls

+ 1
- 1
users/init.sls Näytä tiedosto

@@ -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…
Peruuta
Tallenna