added support for ssh option override

This commit is contained in:
nd 2019-06-18 00:14:38 +01:00
parent 94313cc23e
commit 07b4bee34f
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 8 additions and 2 deletions

View file

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

View file

@ -49,10 +49,12 @@ Subsystem sftp internal-sftp
UsePam yes # needed to create home dirs with an ldap login
AuthorizedKeysFile /root/.ssh/authorized_keys
MaxAuthTries 10
{% for i in ssh.config_override|d({}) %}
{{ i }} {{ ssh.config_override[i] }}
{% endfor %}
# add special rules for users defined in host variables
{% for i in sshuser %}