1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/dbscripts/templates/authorized_keys-group.j2
Florian Pritz 11ad970032
dbscripts: Simplify creation of combined authorized_keys
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-01-02 15:53:10 +01:00

14 lines
561 B
Django/Jinja

#jinja2: lstrip_blocks: True
{% for user in arch_users | sort %}
{% for group in pubkey_groups | sort %}
{% if group in arch_users[user].groups %}
{% set keys = lookup('file', '../pubkeys/'+user+'.pub').split("\n") %}
{% for key in keys | sort %}
{% if "command" not in key -%}
command="/usr/bin/svnserve --tunnel-user={{user}} -t",no-port-forwarding,no-agent-forwarding,no-pty {{key}}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}