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.

46 lines
1.6KB

  1. {% set openssh = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'server': 'openssh-server',
  4. 'client': 'openssh-client',
  5. 'service': 'ssh',
  6. 'sshd_config': '/etc/ssh/sshd_config',
  7. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  8. 'banner': '/etc/ssh/banner',
  9. 'banner_src': 'salt://openssh/files/banner',
  10. },
  11. 'RedHat': {
  12. 'server': 'openssh-server',
  13. 'client': 'openssh',
  14. 'service': 'sshd',
  15. 'sshd_config': '/etc/ssh/sshd_config',
  16. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  17. 'banner': '/etc/ssh/banner',
  18. 'banner_src': 'salt://openssh/files/banner',
  19. },
  20. 'Suse': {
  21. 'server': 'openssh',
  22. 'client': 'openssh',
  23. 'service': 'sshd',
  24. 'sshd_config': '/etc/ssh/sshd_config',
  25. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  26. 'banner': '/etc/ssh/banner',
  27. 'banner_src': 'salt://openssh/files/banner',
  28. },
  29. 'FreeBSD': {
  30. 'service': 'sshd',
  31. 'sshd_config': '/etc/ssh/sshd_config',
  32. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  33. 'banner': '/etc/ssh/banner',
  34. 'banner_src': 'salt://openssh/files/banner',
  35. },
  36. 'Arch': {
  37. 'server': 'openssh',
  38. 'client': 'openssh',
  39. 'service': 'sshd.socket',
  40. 'sshd_config': '/etc/ssh/sshd_config',
  41. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  42. 'banner': '/etc/ssh/banner',
  43. 'banner_src': 'salt://openssh/files/banner',
  44. },
  45. }, merge=salt['pillar.get']('openssh:lookup')) %}