mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2024-11-28 00:48:22 +01:00
Use contents_pillar to work with multiple-line authorized_keys file
This commit is contained in:
parent
21fc8df0b6
commit
984317fca1
@ -207,9 +207,8 @@ 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'].iteritems() %}
|
- 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