Merge pull request #104 from Perceptyx/banner_fix

Allow to configure SSH banner text in pillar
This commit is contained in:
Niels Abspoel 2017-07-28 10:49:52 +02:00 committed by GitHub
commit 6dba76fe56
5 changed files with 21 additions and 12 deletions

View File

@ -6,5 +6,10 @@ include:
sshd_banner:
file.managed:
- name: {{ openssh.banner }}
{% if openssh.banner_string is defined %}
- contents: |
{{ openssh.banner_string }}
{% else %}
- source: {{ openssh.banner_src }}
- template: jinja
{% endif %}

View File

@ -177,6 +177,10 @@ ssh_config:
openssh:
# Instead of adding a custom banner file you can set it in pillar
banner_string: |
Welcome to {{ grains['id'] }}!
# Controls if SSHD should be enabled/started
sshd_enable: true
auth: