Saltstack Official Salt Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

94 lines
4.7KB

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