Skip to content
Snippets Groups Projects
Commit a4040431 authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[ssh_known_hosts] Add hostname to ssh_known_hosts

parent 5661bb4b
No related branches found
No related tags found
1 merge request!228[ssh_known_hosts] Add hostname to ssh_known_hosts
......@@ -4,6 +4,6 @@
{% set cns = query('ldap', 'all_cn', hosts[host].cn[0]) | sort %}
{% set ips = query('ldap', 'all_ip', hosts[host].cn[0]) | sort %}
{% for key in query('ldap', 'ssh_keys', hosts[host].cn[0]) | sort %}
{{ cns | join(',') }},{{ ips | join(',') }} {{ key }} root@{{ hosts[host].cn[0] }}
{{ hosts[host].cn[0] }},{{ cns | join(',') }},{{ ips | join(',') }} {{ key }} root@{{ hosts[host].cn[0] }}
{% endfor %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment