added support for multiple user overrides

This commit is contained in:
nd 2019-06-25 20:12:28 +01:00
parent c4936b3f6f
commit 0df06810fc
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
--- ---
sshuser: {}
rootpath: '' rootpath: ''
ssh: ssh:
config_override: config_override:
AuthorizedKeysFile: ".ssh/authorized_keys" AuthorizedKeysFile: ".ssh/authorized_keys"
user: {}

View file

@ -57,9 +57,9 @@ MaxAuthTries 10
# add special rules for users defined in host variables # add special rules for users defined in host variables
{% for i in sshuser %} {% for i in ssh.user %}
Match User {{ i }} Match User {{ i }}
{% for j in sshuser[i]|d({}) %} {% for j in ssh.user[i]|d({}) %}
{{ j }} {{ sshuser[i][j] }} {{ j }} {{ ssh.user[i][j] }}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}