From 23c5df213046ba29af544ad5c690f75d3737c158 Mon Sep 17 00:00:00 2001 From: Silvio Kunaschk Date: Sun, 9 Jul 2017 16:06:17 +0200 Subject: [PATCH] fixed insertion of multiple authorized keys via ssh_auth_pillar --- users/init.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/init.sls b/users/init.sls index 3d31967..0e5d413 100644 --- a/users/init.sls +++ b/users/init.sls @@ -217,8 +217,9 @@ users_authorized_keys_{{ name }}: {{ auth }} {% endfor -%} {% else %} + - contents: | {%- for key_name, pillar_name in user['ssh_auth_pillar'].items() %} - - contents_pillar: {{ pillar_name }}:{{ key_name }}:pubkey + {{ salt['pillar.get'](pillar_name + ':' + key_name + ':pubkey', '') }} {%- endfor %} {% endif %} {% endif %}