Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

88 lines
3.5KB

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