Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

53 行
1.9KB

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