Saltstack Official Salt Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

54 lines
1.9KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. {% import_yaml "salt/ospyvermap.yaml" as ospyvermap %}
  5. {% set ospyver = salt['grains.filter_by'](ospyvermap, grain='os_family') or {} %}
  6. {% set py_ver_dir = salt['pillar.filter_by'](ospyver, pillar='salt:py_ver', default='py2') %}
  7. {% set osrelease = salt['grains.get']('osrelease') %}
  8. {% set salt_release = salt['pillar.get']('salt:release', 'latest') %}
  9. {% if salt_release.split('.')|length >= 3 %}
  10. {% set salt_release = 'archive/' ~ salt_release %}
  11. {% endif %}
  12. {% set os_lower = salt['grains.get']('os')|lower %}
  13. {% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
  14. {% set oscodename = salt['grains.get']('oscodename') %}
  15. {% set os_family_lower = salt['grains.get']('os_family')|lower %}
  16. Fedora:
  17. pygit2: python2-pygit2
  18. Ubuntu:
  19. pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
  20. key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
  21. pygit2: python-pygit2
  22. gitfs:
  23. pygit2:
  24. install_from_source: false
  25. git:
  26. require_state: false
  27. install_from_package: Null
  28. Raspbian:
  29. pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
  30. key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
  31. SmartOS:
  32. salt_master: salt
  33. salt_minion: salt
  34. salt_syndic: salt
  35. salt_cloud: salt
  36. salt_api: salt
  37. salt_ssh: salt
  38. minion_service: 'salt:minion'
  39. master_service: 'salt:master'
  40. api_service: 'salt:api'
  41. python_dulwich: 'py27-dulwich'
  42. gitfs:
  43. dulwich:
  44. install_from_source: false
  45. config_path: /opt/local/etc/salt
  46. master:
  47. gitfs_provider: dulwich