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.

67 lines
2.4KB

  1. {% set openssh = salt['grains.filter_by']({
  2. 'Arch': {
  3. 'server': 'openssh',
  4. 'client': 'openssh',
  5. 'service': 'sshd.socket',
  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. 'dig_pkg': 'dnsutils',
  11. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  12. },
  13. 'Debian': {
  14. 'server': 'openssh-server',
  15. 'client': 'openssh-client',
  16. 'service': 'ssh',
  17. 'sshd_config': '/etc/ssh/sshd_config',
  18. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  19. 'banner': '/etc/ssh/banner',
  20. 'banner_src': 'salt://openssh/files/banner',
  21. 'dig_pkg': 'dnsutils',
  22. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  23. },
  24. 'FreeBSD': {
  25. 'service': 'sshd',
  26. 'sshd_config': '/etc/ssh/sshd_config',
  27. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  28. 'banner': '/etc/ssh/banner',
  29. 'banner_src': 'salt://openssh/files/banner',
  30. 'dig_pkg': 'bind-tools',
  31. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  32. },
  33. 'Gentoo': {
  34. 'server': 'net-misc/openssh',
  35. 'client': 'net-misc/openssh',
  36. 'service': 'sshd',
  37. 'sshd_config': '/etc/ssh/sshd_config',
  38. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  39. 'banner': '/etc/ssh/banner',
  40. 'banner_src': 'salt://openssh/files/banner',
  41. 'dig_pkg': 'net-dns/bind-tools',
  42. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  43. },
  44. 'RedHat': {
  45. 'server': 'openssh-server',
  46. 'client': 'openssh',
  47. 'service': 'sshd',
  48. 'sshd_config': '/etc/ssh/sshd_config',
  49. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  50. 'banner': '/etc/ssh/banner',
  51. 'banner_src': 'salt://openssh/files/banner',
  52. 'dig_pkg': 'bind-utils',
  53. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  54. },
  55. 'Suse': {
  56. 'server': 'openssh',
  57. 'client': 'openssh',
  58. 'service': 'sshd',
  59. 'sshd_config': '/etc/ssh/sshd_config',
  60. 'sshd_config_src': 'salt://openssh/files/sshd_config',
  61. 'banner': '/etc/ssh/banner',
  62. 'banner_src': 'salt://openssh/files/banner',
  63. 'dig_pkg': 'bind-utils',
  64. 'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
  65. },
  66. }, merge=salt['pillar.get']('openssh:lookup')) %}