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

91 行
3.5KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. {%- set py_ver_repr = salt['pillar.get']('salt:py_ver', '') %}
  5. {%- set osarch = salt['grains.get']('osarch', '') %}
  6. {%- set repoarch = 'amd64' if osarch in ['x86_64', 'amd64']
  7. else 'arm64' if osarch in ['aarch64', 'arm64']
  8. else '' %}
  9. {%- set osrelease = salt['grains.get']('osrelease', '') %}
  10. {%- set salt_release = salt['pillar.get']('salt:release', 'latest') %}
  11. {%- if salt_release.split('.')|length >= 3 %}
  12. {%- set salt_release = 'archive/' ~ salt_release %}
  13. {%- endif %}
  14. {%- set os_lower = salt['grains.get']('os')|lower %}
  15. {%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
  16. {%- set oscodename = salt['grains.get']('oscodename') %}
  17. {%- set os_family_lower = salt['grains.get']('os_family')|lower %}
  18. {%- set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltproject.io/salt') %}
  19. Fedora:
  20. pygit2: python2-pygit2
  21. Amazon:
  22. pkgrepo_name: saltstack-amzn-repo
  23. pkgrepo_humanname: SaltStack repo for Amazon Linux 2
  24. pkgrepo: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/amazon/2/$basearch/{{ salt_release }}'
  25. key_url: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/amazon/2/$basearch/{{ salt_release }}/SALT-PROJECT-GPG-PUBKEY-2023.gpg'
  26. Ubuntu:
  27. pkgrepo: 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch={{ repoarch }}] {{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_lower }}/{{ osrelease }}/{{ repoarch }}/{{ salt_release }} {{ oscodename }} main'
  28. pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALT-PROJECT-GPG-PUBKEY-2023.gpg'
  29. pkgrepo_keyring_hash: sha256=c6f6cbcd96fdb130b1dde8dcfc05d46a3a3f322ff0514f98e2e6473896243472
  30. key_url: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALT-PROJECT-GPG-PUBKEY-2023.gpg'
  31. pygit2: python-pygit2
  32. gitfs:
  33. pygit2:
  34. install_from_source: false
  35. git:
  36. require_state: false
  37. install_from_package: Null
  38. Raspbian:
  39. pkgrepo: 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] {{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
  40. pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALT-PROJECT-GPG-PUBKEY-2023.gpg'
  41. SmartOS:
  42. salt_master: salt
  43. salt_minion: salt
  44. salt_syndic: salt
  45. salt_cloud: salt
  46. salt_api: salt
  47. salt_ssh: salt
  48. minion_service: 'salt:minion'
  49. master_service: 'salt:master'
  50. api_service: 'salt:api'
  51. python_dulwich: {{ py_ver_repr or 'py27' }}{{ '-dulwich' }}
  52. gitfs:
  53. dulwich:
  54. install_from_source: false
  55. config_path: /opt/local/etc/salt
  56. master:
  57. gitfs_provider: dulwich
  58. MacOS:
  59. minion_service: com.saltstack.salt.minion
  60. master_service: com.saltstack.salt.master
  61. salt_master_macos_plist_hash: 8435331b2d48ca8f0759f216e5b15ec9171a4216b1441328c732c6906728b7c9
  62. salt_minion_macos_plist_hash: 26b33da12e0d8960ee96b488c8352002c22a377c19bf3df3f986a1e49eca8b20
  63. FreeBSD:
  64. salt_master: py39-salt
  65. salt_minion: py39-salt
  66. salt_syndic: py39-salt
  67. salt_cloud: py39-salt
  68. salt_api: py39-salt
  69. salt_ssh: py39-salt
  70. python_git: py39-gitpython
  71. pygit2: py39-pygit2
  72. python_dulwich: py39-dulwich
  73. # If `osfingermap.yaml` is introduced in the future, perhaps better to move to there,
  74. # since this is probably specific to `OpenBSD-6`
  75. OpenBSD:
  76. python_git: py3-GitPython
  77. python_dulwich: py3-dulwich
  78. Windows:
  79. parallel: false # not supported on windows/cygwin