Quellcode durchsuchen

Add ConfigBanner to processed_options when handled.

This prevents a verbatim version being added to end of file that will
cause the parsing to fail.
tags/v0.41.0
Brian Holland vor 7 Jahren
Ursprung
Commit
6400516c5e
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +3
    -2
      openssh/files/sshd_config

+ 3
- 2
openssh/files/sshd_config Datei anzeigen

@@ -74,9 +74,10 @@
{%- endmacro -%}

{%- if sshd_config.get('ConfigBanner', False) -%}
{{ sshd_config['ConfigBanner'] }}
{%- do processed_options.append('ConfigBanner') -%}
{{ sshd_config['ConfigBanner'] }}
{%- else -%}
# This file is managed by salt. Manual changes risk being overwritten.
# This file is managed by salt. Manual changes risk being overwritten.
{%- endif %}
{%- set global_src_url = salt ['pillar.get']('__formulas:print_template_url', None) %}
{%- set local_src_url = salt ['pillar.get']('openssh-formula:print_template_url', None) %}

Laden…
Abbrechen
Speichern