Saltstack Official Salt Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. 'pkgrepo': 'deb http://debian.saltstack.com/debian ' + salt['grains.get']('oscodename') + '-saltstack main',
  12. 'key_url': 'salt://salt/pkgrepo/debian/saltstack.gpg',
  13. 'libgit2': 'libgit2-22',
  14. 'gitfs': {
  15. 'pygit2': {
  16. 'install_from_source': True,
  17. 'version': '0.22.1',
  18. 'git': {
  19. 'require_state': False,
  20. 'install_from_package': 'git',
  21. },
  22. 'libgit2': {
  23. 'install_from_source': False,
  24. },
  25. },
  26. },
  27. },
  28. 'RedHat': {
  29. 'pygit2': 'python-pygit2',
  30. 'python_git': 'GitPython',
  31. 'gitfs': {
  32. 'pygit2': {
  33. 'install_from_source': False,
  34. 'git': {
  35. 'require_state': False,
  36. 'install_from_package': 'git',
  37. },
  38. },
  39. },
  40. 'master': {
  41. 'gitfs_provider': 'pygit2'
  42. },
  43. 'repotype': 'epel',
  44. },
  45. 'Suse': {},
  46. 'Gentoo': {
  47. 'salt_master': 'app-admin/salt',
  48. 'salt_minion': 'app-admin/salt',
  49. 'salt_syndic': 'app-admin/salt',
  50. 'salt_api': 'app-admin/salt',
  51. 'salt_cloud': 'app-admin/salt',
  52. },
  53. 'Arch': {
  54. 'salt_master': 'salt-zmq',
  55. 'salt_minion': 'salt-zmq',
  56. 'salt_syndic': 'salt-zmq',
  57. 'salt_cloud': 'salt-zmq',
  58. 'salt_api': 'salt-zmq',
  59. 'salt_ssh': 'salt-zmq',
  60. },
  61. 'FreeBSD': {
  62. 'salt_master': 'py27-salt',
  63. 'salt_minion': 'py27-salt',
  64. 'salt_syndic': 'py27-salt',
  65. 'salt_cloud': 'py27-salt',
  66. 'salt_api': 'py27-salt',
  67. 'salt_ssh': 'py27-salt',
  68. 'python_git': 'py27-GitPython',
  69. 'pygit2': 'py27-pygit2',
  70. 'config_path': '/usr/local/etc/salt',
  71. 'minion_service': 'salt_minion',
  72. 'master_service': 'salt_master',
  73. 'api_service': 'salt_api',
  74. 'syndic_service': 'salt_syndic',
  75. },
  76. 'Windows': {
  77. 'salt_minion': 'saltstack.minion',
  78. 'config_path': 'C:\salt\conf',
  79. 'minion_service': 'salt-minion',
  80. },
  81. }, grain="os_family", merge=salt['pillar.get']('salt:lookup'))
  82. %}
  83. {## Merge the flavor_map to the default settings ##}
  84. {% do default_settings.salt.update(os_family_map) %}
  85. {## Merge in salt:lookup pillar ##}
  86. {% set salt_settings = salt['pillar.get'](
  87. 'salt',
  88. default=default_settings.salt,
  89. merge=True)
  90. %}