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

18 行
439B

  1. {% from "openssh/map.jinja" import openssh with context %}
  2. include:
  3. - openssh
  4. {% if salt['pillar.get']('sshd_config', False) %}
  5. sshd_config-with-ini:
  6. ini.options_present:
  7. - name: {{ openssh.sshd_config }}
  8. - separator: ' '
  9. - watch_in:
  10. - service: {{ openssh.service }}
  11. - sections:
  12. {%- for k,v in salt['pillar.get']('sshd_config',{}).items() %}
  13. {{ k }}: '{{ v }}'
  14. {%- endfor %}
  15. {% endif %}