Browse Source

fixed insertion of multiple authorized keys via ssh_auth_pillar

tags/v0.45.0
Silvio Kunaschk 7 years ago
parent
commit
23c5df2130
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      users/init.sls

+ 2
- 1
users/init.sls View File

{{ 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…
Cancel
Save