Pārlūkot izejas kodu

Merge pull request #187 from M2Mobi/ssh_known_hosts

Improvements for ssh known hosts handling
master
Niels Abspoel pirms 6 gadiem
vecāks
revīzija
537d8dd054
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 14 papildinājumiem un 2 dzēšanām
  1. +6
    -0
      pillar.example
  2. +8
    -2
      users/init.sls

+ 6
- 0
pillar.example Parādīt failu

@@ -93,7 +93,13 @@ users:
# Manage the ~/.ssh/config file
ssh_known_hosts:
importanthost:
port: 22
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:
- notimportanthost
ssh_config:

+ 8
- 2
users/init.sls Parādīt failu

@@ -375,8 +375,14 @@ users_ssh_known_hosts_{{ name }}_{{ loop.index0 }}:
{% if 'enc' in host %}
- enc: {{ host['enc'] }}
{% endif -%}
{% if 'hash_hostname' in host %}
- hash_hostname: {{ host['hash_hostname'] }}
{% if 'hash_known_hosts' in host %}
- 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 -%}
{% endfor %}
{% endif %}

Notiek ielāde…
Atcelt
Saglabāt