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.

init.sls 507B

11 years ago
11 years ago
12345678910111213141516171819202122232425
  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