Saltstack Official Salt 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.

79 lines
2.0KB

  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. 'libgit2': {
  17. 'install_from_source': False,
  18. },
  19. },
  20. },
  21. },
  22. 'RedHat': {
  23. 'pygit2': 'python-pygit2',
  24. 'gitfs': {
  25. 'pygit2': {
  26. 'install_from_source': False,
  27. },
  28. },
  29. 'master': {
  30. 'gitfs_provider': 'pygit2'
  31. },
  32. 'repotype': 'epel',
  33. },
  34. 'Suse': {},
  35. 'Gentoo': {
  36. 'salt_master': 'app-admin/salt',
  37. 'salt_minion': 'app-admin/salt',
  38. 'salt_syndic': 'app-admin/salt',
  39. 'salt_api': 'app-admin/salt',
  40. 'salt_cloud': 'app-admin/salt',
  41. },
  42. 'Arch': {
  43. 'salt_master': 'salt-zmq',
  44. 'salt_minion': 'salt-zmq',
  45. 'salt_syndic': 'salt-zmq',
  46. 'salt_cloud': 'salt-zmq',
  47. 'salt_api': 'salt-zmq',
  48. 'salt_ssh': 'salt-zmq',
  49. },
  50. 'FreeBSD': {
  51. 'salt_master': 'py27-salt',
  52. 'salt_minion': 'py27-salt',
  53. 'salt_syndic': 'py27-salt',
  54. 'salt_cloud': 'py27-salt',
  55. 'salt_api': 'py27-salt',
  56. 'salt_ssh': 'py27-salt',
  57. 'python_git': 'py27-GitPython',
  58. 'pygit2': 'py27-pygit2',
  59. 'config_path': '/usr/local/etc/salt',
  60. 'minion_service': 'salt_minion',
  61. 'master_service': 'salt_master',
  62. 'api_service': 'salt_api',
  63. 'syndic_service': 'salt_syndic',
  64. },
  65. }, grain="os_family", merge=salt['pillar.get']('salt:lookup'))
  66. %}
  67. {## Merge the flavor_map to the default settings ##}
  68. {% do default_settings.salt.update(os_family_map) %}
  69. {## Merge in salt:lookup pillar ##}
  70. {% set salt_settings = salt['pillar.get'](
  71. 'salt',
  72. default=default_settings.salt,
  73. merge=True)
  74. %}