0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

Merge pull request #156 from qno/master

fixed insertion of multiple authorized keys via ssh_auth_pillar
This commit is contained in:
Niels Abspoel 2017-09-22 20:03:40 +02:00 committed by GitHub
commit e5e9cd8fcf

View File

@ -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 %}