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

26 行
507B

  1. openssh:
  2. pkg:
  3. - installed
  4. {% if grains['os_family'] == 'Debian' %}
  5. - name: openssh-server
  6. {% endif %}
  7. service.running:
  8. - enable: True
  9. - name: ssh
  10. - require:
  11. - pkg: openssh
  12. - file: sshd_banner
  13. - watch:
  14. - file: sshd_config
  15. sshd_config:
  16. file.managed:
  17. - name: /etc/ssh/sshd_config
  18. - source: salt://openssh/files/sshd_config
  19. sshd_banner:
  20. file.managed:
  21. - name: /etc/ssh/banner
  22. - source: salt://openssh/files/banner
  23. - template: jinja