Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 line
5.1KB

  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 != "latest" %}
  9. {%- set salt_release_major = salt_release.split('.') | map('.') | list | first %}
  10. {%- endif %}
  11. {%- if salt_release.split('.')|length >= 3 %}
  12. {%- set salt_release = 'archive/' ~ salt_release %}
  13. {%- endif %}
  14. {%- set salt_release_major = salt_release.split('.') | map('int') | list | first %}
  15. {%- if salt_release != "latest" %}
  16. {%- set onedir = salt['pillar.get']('salt:onedir', True) if (salt_release_major >= 3005) and (salt_release != "archive/") else False %}
  17. {%- else %}
  18. {%- set onedir = True %}
  19. {%- endif %}
  20. {%- set os_lower = salt['grains.get']('os')|lower %}
  21. {%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
  22. {%- set oscodename = salt['grains.get']('oscodename') %}
  23. {%- set os_family_lower = salt['grains.get']('os_family')|lower %}
  24. {%- set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltproject.io') %}
  25. Fedora:
  26. pygit2: python2-pygit2
  27. Amazon:
  28. pkgrepo_name: saltstack-amzn-repo
  29. pkgrepo_humanname: SaltStack repo for Amazon Linux 2
  30. pkgrepo: '{{ salt_repo }}/{% if onedir == True %}salt/{% endif %}{{ py_ver_repr or 'py3' }}/amazon/2/$basearch/{{ salt_release }}'
  31. 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 %}'
  32. Ubuntu:
  33. 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'
  34. 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 %}'
  35. pkgrepo_keyring_hash: sha256={% if (salt_release == "latest") or (salt_release_major >= 3006) %}c6f6cbcd96fdb130b1dde8dcfc05d46a3a3f322ff0514f98e2e6473896243472{% else %}ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47{% endif %}
  36. 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 %}'
  37. pygit2: python-pygit2
  38. gitfs:
  39. pygit2:
  40. install_from_source: false
  41. git:
  42. require_state: false
  43. install_from_package: Null
  44. Raspbian:
  45. 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'
  46. 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 %}'
  47. SmartOS:
  48. salt_master: salt
  49. salt_minion: salt
  50. salt_syndic: salt
  51. salt_cloud: salt
  52. salt_api: salt
  53. salt_ssh: salt
  54. minion_service: 'salt:minion'
  55. master_service: 'salt:master'
  56. api_service: 'salt:api'
  57. python_dulwich: {{ py_ver_repr or 'py27' }}{{ '-dulwich' }}
  58. gitfs:
  59. dulwich:
  60. install_from_source: false
  61. config_path: /opt/local/etc/salt
  62. master:
  63. gitfs_provider: dulwich
  64. MacOS:
  65. minion_service: com.saltstack.salt.minion
  66. master_service: com.saltstack.salt.master
  67. salt_master_macos_plist_source: https://github.com/saltstack/salt/raw/master/pkg/macos/scripts/com.saltstack.salt.master.plist
  68. salt_minion_macos_plist_source: https://github.com/saltstack/salt/raw/master/pkg/macos/scripts/com.saltstack.salt.minion.plist
  69. salt_master_macos_plist_hash: 97666226c14ec2fd755edb5d909688540a36408dfe9fb34a1c15676020376ace
  70. salt_minion_macos_plist_hash: 17d9556b5742a785eaddaec117132be99af138cab7157dbacbda2058538b6e69
  71. FreeBSD:
  72. salt_master: py39-salt
  73. salt_minion: py39-salt
  74. salt_syndic: py39-salt
  75. salt_cloud: py39-salt
  76. salt_api: py39-salt
  77. salt_ssh: py39-salt
  78. python_git: py39-gitpython
  79. pygit2: py39-pygit2
  80. python_dulwich: py39-dulwich
  81. # If `osfingermap.yaml` is introduced in the future, perhaps better to move to there,
  82. # since this is probably specific to `OpenBSD-6`
  83. OpenBSD:
  84. python_git: py3-GitPython
  85. python_dulwich: py3-dulwich
  86. Windows:
  87. parallel: false # not supported on windows/cygwin