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.

25 lines
491B

  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. - require:
  10. - pkg: openssh
  11. - file: sshd_banner
  12. - watch:
  13. - file: sshd_config
  14. sshd_config:
  15. file.managed:
  16. - name: /etc/ssh/sshd_config
  17. - source: salt://openssh/files/sshd_config
  18. sshd_banner:
  19. file.managed:
  20. - name: /etc/ssh/banner
  21. - source: salt://openssh/files/banner
  22. - template: jinja