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.

пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {## Start with defaults from defaults.yaml ##}
  2. {% import_yaml "openssh/defaults.yaml" as default_settings %}
  3. {##
  4. Setup variable using grains['os_family'] based logic, only add key:values here
  5. that differ from whats in defaults.yaml
  6. ##}
  7. {% set os_family_map = salt['grains.filter_by']({
  8. 'Arch': {
  9. 'server': 'openssh',
  10. 'client': 'openssh',
  11. 'service': 'sshd',
  12. },
  13. 'Debian': {
  14. 'server': 'openssh-server',
  15. 'client': 'openssh-client',
  16. 'service': 'ssh',
  17. },
  18. 'FreeBSD': {
  19. 'service': 'sshd',
  20. 'dig_pkg': 'bind-tools',
  21. },
  22. 'Gentoo': {
  23. 'server': 'net-misc/openssh',
  24. 'client': 'net-misc/openssh',
  25. 'service': 'sshd',
  26. 'dig_pkg': 'net-dns/bind-tools',
  27. },
  28. 'RedHat': {
  29. 'server': 'openssh-server',
  30. 'client': 'openssh',
  31. 'service': 'sshd',
  32. 'dig_pkg': 'bind-utils',
  33. },
  34. 'Suse': {
  35. 'server': 'openssh',
  36. 'client': 'openssh',
  37. 'service': 'sshd',
  38. 'dig_pkg': 'bind-utils',
  39. },
  40. }
  41. , grain="os_family"
  42. , merge=salt['pillar.get']('openssh:lookup'))
  43. %}
  44. {## Merge the flavor_map to the default settings ##}
  45. {% do default_settings.openssh.update(os_family_map) %}
  46. {## Merge in openssh:lookup pillar ##}
  47. {% set openssh = salt['pillar.get'](
  48. 'openssh',
  49. default=default_settings.openssh,
  50. merge=True
  51. )
  52. %}