2014-01-04 03:32:05 +01:00
|
|
|
{% from "openssh/map.jinja" import openssh with context %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- openssh
|
|
|
|
|
|
|
|
sshd_banner:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ openssh.banner }}
|
2017-07-28 00:55:34 +02:00
|
|
|
{% if openssh.banner_string is defined %}
|
2017-08-10 14:48:02 +02:00
|
|
|
- contents: {{ openssh.banner_string | yaml }}
|
2017-07-28 00:55:34 +02:00
|
|
|
{% else %}
|
2014-01-04 03:32:05 +01:00
|
|
|
- source: {{ openssh.banner_src }}
|
|
|
|
- template: jinja
|
2017-07-28 00:55:34 +02:00
|
|
|
{% endif %}
|