瀏覽代碼

Add host keys from pillar[openssh:known_hosts:static] to `ssh_known_hosts`

master
Florian Ermisch 6 年之前
父節點
當前提交
45763f54aa
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      openssh/files/ssh_known_hosts

+ 3
- 1
openssh/files/ssh_known_hosts 查看文件

@@ -66,6 +66,8 @@
{#- Loop over targetted minions -#}
{%- set host_keys = salt['mine.get'](target, keys_function, tgt_type=tgt_type) -%}
{%- set host_names = salt['mine.get'](target, hostname_function, tgt_type=tgt_type) -%}
{%- for host, keys in host_keys|dictsort -%}
{%- do host_keys.update(salt['pillar.get']('openssh:known_hosts:static',
{}).items()) -%}
{%- for host, keys in host_keys| dictsort -%}
{{ known_host_entry(host, host_names, keys) }}
{%- endfor -%}

Loading…
取消
儲存