Saltstack Official Salt Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {## Start with defaults from defaults.yaml ##}
  4. {% import_yaml "salt/defaults.yaml" as default_settings %}
  5. {##
  6. Setup variable using grains['os_family'] based logic, only add key:values here
  7. that differ from whats in defaults.yaml
  8. ##}
  9. {% set os_family_map = salt['grains.filter_by']({
  10. 'Debian': {
  11. 'libgit2': 'libgit2-22',
  12. 'gitfs': {
  13. 'pygit2': {
  14. 'install_from_source': True,
  15. 'version': '0.22.1',
  16. 'git': {
  17. 'require_state': False,
  18. 'install_from_package': 'git',
  19. },
  20. 'libgit2': {
  21. 'install_from_source': False,
  22. },
  23. },
  24. },
  25. },
  26. 'RedHat': {
  27. 'pygit2': 'python-pygit2',
  28. 'gitfs': {
  29. 'pygit2': {
  30. 'install_from_source': False,
  31. 'git': {
  32. 'require_state': False,
  33. 'install_from_package': 'git',
  34. },
  35. },
  36. },
  37. 'master': {
  38. 'gitfs_provider': 'pygit2'
  39. },
  40. 'repotype': 'epel',
  41. },
  42. 'Suse': {},
  43. 'Gentoo': {
  44. 'salt_master': 'app-admin/salt',
  45. 'salt_minion': 'app-admin/salt',
  46. 'salt_syndic': 'app-admin/salt',
  47. 'salt_api': 'app-admin/salt',
  48. 'salt_cloud': 'app-admin/salt',
  49. },
  50. 'Arch': {
  51. 'salt_master': 'salt-zmq',
  52. 'salt_minion': 'salt-zmq',
  53. 'salt_syndic': 'salt-zmq',
  54. 'salt_cloud': 'salt-zmq',
  55. 'salt_api': 'salt-zmq',
  56. 'salt_ssh': 'salt-zmq',
  57. },
  58. 'FreeBSD': {
  59. 'salt_master': 'py27-salt',
  60. 'salt_minion': 'py27-salt',
  61. 'salt_syndic': 'py27-salt',
  62. 'salt_cloud': 'py27-salt',
  63. 'salt_api': 'py27-salt',
  64. 'salt_ssh': 'py27-salt',
  65. 'python_git': 'py27-GitPython',
  66. 'pygit2': 'py27-pygit2',
  67. 'config_path': '/usr/local/etc/salt',
  68. 'minion_service': 'salt_minion',
  69. 'master_service': 'salt_master',
  70. 'api_service': 'salt_api',
  71. 'syndic_service': 'salt_syndic',
  72. },
  73. }, grain="os_family", merge=salt['pillar.get']('salt:lookup'))
  74. %}
  75. {## Merge the flavor_map to the default settings ##}
  76. {% do default_settings.salt.update(os_family_map) %}
  77. {## Merge in salt:lookup pillar ##}
  78. {% set salt_settings = salt['pillar.get'](
  79. 'salt',
  80. default=default_settings.salt,
  81. merge=True)
  82. %}