added support for ssh option override
This commit is contained in:
parent
94313cc23e
commit
07b4bee34f
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
---
|
---
|
||||||
sshuser: {}
|
sshuser: {}
|
||||||
rootpath: ''
|
rootpath: ''
|
||||||
|
|
||||||
|
ssh:
|
||||||
|
config_override:
|
||||||
|
AuthorizedKeysFile: ".ssh/authorized_keys"
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,12 @@ Subsystem sftp internal-sftp
|
||||||
|
|
||||||
UsePam yes # needed to create home dirs with an ldap login
|
UsePam yes # needed to create home dirs with an ldap login
|
||||||
|
|
||||||
AuthorizedKeysFile /root/.ssh/authorized_keys
|
|
||||||
|
|
||||||
MaxAuthTries 10
|
MaxAuthTries 10
|
||||||
|
|
||||||
|
{% for i in ssh.config_override|d({}) %}
|
||||||
|
{{ i }} {{ ssh.config_override[i] }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
# 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 sshuser %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue