Pārlūkot izejas kodu

Merge pull request #54 from ketzacoatl/patch-1

Add support for Host definitions in ssh_config
tags/v0.41.0
puneet kandhari pirms 9 gadiem
vecāks
revīzija
a2408d5e1e
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      openssh/files/ssh_config

+ 9
- 0
openssh/files/ssh_config Parādīt failu

@@ -68,6 +68,15 @@
{{ option(' PermitLocalCommand', 'no') }}
{{ option(' VisualHostKey', 'no') }}

{%- if 'Hosts' in ssh_config %}
{%- do processed_options.append('Hosts') %}
{% for host, conf in ssh_config['Hosts'].items() %}
Host {{ host }}
{%- for key, val in conf.items() %}
{{ key }} {{ val }}{%- endfor %}
{%- endfor %}
{%- endif %}

{# Handling unknown in salt template options #}
{%- for keyword in ssh_config.keys() %}
{#- Matches have to be at the bottom and should be handled differently -#}

Notiek ielāde…
Atcelt
Saglabāt