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.

106 satır
4.7KB

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