mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2024-11-30 19:35:33 +01:00
fixed insertion of multiple authorized keys via ssh_auth_pillar
This commit is contained in:
parent
cb1ed91151
commit
23c5df2130
@ -217,8 +217,9 @@ users_authorized_keys_{{ name }}:
|
|||||||
{{ auth }}
|
{{ auth }}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
- contents: |
|
||||||
{%- for key_name, pillar_name in user['ssh_auth_pillar'].items() %}
|
{%- 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 %}
|
{%- endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user