Saltstack Official OpenSSH Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
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 %}