mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 03:28:09 +01:00
Add host keys from pillar[openssh:known_hosts:static] to ssh_known_hosts
This commit is contained in:
parent
b93448b5e6
commit
45763f54aa
@ -66,6 +66,8 @@
|
|||||||
{#- Loop over targetted minions -#}
|
{#- Loop over targetted minions -#}
|
||||||
{%- set host_keys = salt['mine.get'](target, keys_function, tgt_type=tgt_type) -%}
|
{%- 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) -%}
|
{%- 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) }}
|
{{ known_host_entry(host, host_names, keys) }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user