Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
660B

  1. {%- set tplroot = tpldir.split('/')[0] %}
  2. {%- from tplroot ~ "/map.jinja" import openssh with context %}
  3. {%- from tplroot ~ "/libtofs.jinja" import files_switch %}
  4. include:
  5. - openssh
  6. sshd_banner:
  7. file.managed:
  8. - name: {{ openssh.banner }}
  9. {%- if openssh.banner_string is defined %}
  10. - contents: {{ openssh.banner_string | yaml }}
  11. {%- else %}
  12. {#- Preserve backward compatibility using the `if` below #}
  13. - source: {{ openssh.banner_src if '://' in openssh.banner_src
  14. else files_switch( [openssh.banner_src],
  15. 'sshd_banner'
  16. ) }}
  17. - template: jinja
  18. {%- endif %}