diff --git a/states/users/init.sls b/states/users/init.sls index 15e7230..54250d4 100644 --- a/states/users/init.sls +++ b/states/users/init.sls @@ -16,4 +16,9 @@ {%- if user.shell is defined %} - shell: {{ user.shell }} {%- endif %} + ssh_auth.manage: + - user: {{ name }} + {%- if user.ssh-keys is defined %} + - ssh_keys: {{ user.ssh-keys|json }} + {%- endif %} {%- endfor %}