Saltstack Official Salt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

73 rindas
3.0KB

  1. {% import_yaml "salt/defaults.yaml" as default_settings %}
  2. {% set distro_map = salt['grains.filter_by']({
  3. 'Debian': {'salt_master': 'salt-master',
  4. 'salt_minion': 'salt-minion',
  5. 'salt_syndic': 'salt-syndic',
  6. 'salt_cloud': 'salt-cloud',
  7. 'salt_api': 'salt-api',
  8. 'salt_ssh': 'salt-ssh'},
  9. 'Ubuntu': {'salt_master': 'salt-master',
  10. 'salt_minion': 'salt-minion',
  11. 'salt_syndic': 'salt-syndic',
  12. 'salt_cloud': 'salt-cloud',
  13. 'salt_api': 'salt-api',
  14. 'salt_ssh': 'salt-ssh'},
  15. 'CentOS': {'salt_master': 'salt-master',
  16. 'salt_minion': 'salt-minion',
  17. 'salt_syndic': 'salt-syndic',
  18. 'salt_cloud': 'salt-cloud',
  19. 'salt_api': 'salt-api',
  20. 'salt_ssh': 'salt-ssh'},
  21. 'Amazon': {'salt_master': 'salt-master',
  22. 'salt_minion': 'salt-minion',
  23. 'salt_syndic': 'salt-syndic',
  24. 'salt_cloud': 'salt-cloud',
  25. 'salt_api': 'salt-api',
  26. 'salt_ssh': 'salt-ssh'},
  27. 'Fedora': {'salt_master': 'salt-master',
  28. 'salt_minion': 'salt-minion',
  29. 'salt_syndic': 'salt-syndic',
  30. 'salt_cloud': 'salt-cloud',
  31. 'salt_api': 'salt-api',
  32. 'salt_ssh': 'salt-ssh'},
  33. 'RedHat': {'salt_master': 'salt-master',
  34. 'salt_minion': 'salt-minion',
  35. 'salt_syndic': 'salt-syndic',
  36. 'salt_cloud': 'salt-cloud',
  37. 'salt_api': 'salt-api',
  38. 'salt_ssh': 'salt-ssh'},
  39. 'Gentoo': {'salt_master': 'app-admin/salt',
  40. 'salt_minion': 'app-admin/salt',
  41. 'salt_syndic': 'app-admin/salt',
  42. 'salt_api': 'app-admin/salt',
  43. 'salt_cloud': 'app-admin/salt'},
  44. 'Arch': {'salt_master': 'salt-zmq',
  45. 'salt_minion': 'salt-zmq',
  46. 'salt_syndic': 'salt-zmq',
  47. 'salt_cloud': 'salt-zmq',
  48. 'salt_api': 'salt-zmq',
  49. 'salt_ssh': 'salt-zmq'},
  50. 'Suse': {'salt_master': 'salt-master',
  51. 'salt_minion': 'salt-minion',
  52. 'salt_syndic': 'salt-syndic',
  53. 'salt_api': 'salt-api',
  54. 'salt_cloud': 'salt-cloud',
  55. 'salt_ssh': 'salt-ssh'},
  56. 'FreeBSD': {'salt_master': 'py27-salt',
  57. 'salt_minion': 'py27-salt',
  58. 'salt_syndic': 'py27-salt',
  59. 'salt_cloud': 'py27-salt',
  60. 'salt_api': 'py27-salt',
  61. 'config_path': '/usr/local/etc/salt',
  62. 'minion_service': 'salt_minion',
  63. 'master_service': 'salt_master',
  64. 'api_service': 'salt_api',
  65. 'syndic_service': 'salt_syndic'},
  66. }, merge=salt['pillar.get']('salt:lookup')) %}
  67. {% do default_settings.salt.update(distro_map) %}
  68. {% set salt_settings = salt['pillar.get']('salt', default=default_settings.salt,
  69. merge=True) %}