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.

18 lines
398B

  1. {% from "openssh/map.jinja" import openssh, sshd_config with context %}
  2. include:
  3. - openssh
  4. {% if sshd_config %}
  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 sshd_config.items() %}
  13. {{ k }}: '{{ v }}'
  14. {%- endfor %}
  15. {% endif %}