From 9a97498b7bf235dece84f9be9424333ae55c88fd Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 19 Jul 2020 14:18:10 +0100 Subject: [PATCH] users: manage ssh authorised keys Signed-off-by: Joe Groocock --- states/users/init.sls | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/states/users/init.sls b/states/users/init.sls index 15e7230..d16c5c5 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 %}