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

21 行
506B

  1. {% from "openssh/map.jinja" import openssh with context %}
  2. openssh:
  3. {% if openssh.server is defined %}
  4. pkg.installed:
  5. - name: {{ openssh.server }}
  6. {% endif %}
  7. {% if openssh.sshd_enable is sameas true %}
  8. service.running:
  9. - enable: {{ openssh.sshd_enable }}
  10. - name: {{ openssh.service }}
  11. {% if openssh.server is defined %}
  12. - require:
  13. - pkg: {{ openssh.server }}
  14. {% endif %}
  15. {% else %}
  16. service.dead:
  17. - enable: False
  18. - name: {{ openssh.service }}
  19. {% endif %}