mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2025-04-17 10:10:28 +00:00
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.
This commit is contained in:
parent
0eda16c548
commit
6400516c5e
1 changed files with 3 additions and 2 deletions
|
@ -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) %}
|
||||
|
|
Loading…
Add table
Reference in a new issue