mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2024-11-28 00:48:22 +01:00
Merge pull request #187 from M2Mobi/ssh_known_hosts
Improvements for ssh known hosts handling
This commit is contained in:
commit
537d8dd054
@ -93,7 +93,13 @@ users:
|
|||||||
# Manage the ~/.ssh/config file
|
# Manage the ~/.ssh/config file
|
||||||
ssh_known_hosts:
|
ssh_known_hosts:
|
||||||
importanthost:
|
importanthost:
|
||||||
|
port: 22
|
||||||
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
|
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
|
||||||
|
key: PUBLICKEY
|
||||||
|
enc: ssh-rsa
|
||||||
|
hash_known_hosts: True
|
||||||
|
timeout: 5
|
||||||
|
fingerprint_hash_type: sha256
|
||||||
ssh_known_hosts.absent:
|
ssh_known_hosts.absent:
|
||||||
- notimportanthost
|
- notimportanthost
|
||||||
ssh_config:
|
ssh_config:
|
||||||
|
@ -375,8 +375,14 @@ users_ssh_known_hosts_{{ name }}_{{ loop.index0 }}:
|
|||||||
{% if 'enc' in host %}
|
{% if 'enc' in host %}
|
||||||
- enc: {{ host['enc'] }}
|
- enc: {{ host['enc'] }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% if 'hash_hostname' in host %}
|
{% if 'hash_known_hosts' in host %}
|
||||||
- hash_hostname: {{ host['hash_hostname'] }}
|
- hash_known_hosts: {{ host['hash_known_hosts'] }}
|
||||||
|
{% endif -%}
|
||||||
|
{% if 'timeout' in host %}
|
||||||
|
- timeout: {{ host['timeout'] }}
|
||||||
|
{% endif -%}
|
||||||
|
{% if 'fingerprint_hash_type' in host %}
|
||||||
|
- fingerprint_hash_type: {{ host['fingerprint_hash_type'] }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user