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.

147 lines
4.5KB

  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') %}
  7. {%- if salt_release.split('.')|length >= 3 %}
  8. {%- set salt_release = 'archive/' ~ salt_release %}
  9. {%- endif %}
  10. {%- set osfamily_lower = salt['grains.get']('os_family')|lower %}
  11. {%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
  12. {%- set oscodename = salt['grains.get']('oscodename') %}
  13. {%- set suse_testing_repo = ':/products:/next:/testing' if [osfamily_lower, osrelease] == ['suse', '15.2'] else '' %}
  14. #from template-formula
  15. {%- if grains.os_family == 'MacOS' %}
  16. {%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
  17. {%- set rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
  18. {%- elif grains.os_family == 'Windows' %}
  19. {%- set rootuser = salt['cmd.run']("id -un") %}
  20. {%- endif %}
  21. Debian:
  22. pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
  23. key_url: 'https://repo.saltstack.com/{{ py_ver_repr or 'apt' }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
  24. libgit2: libgit2-22
  25. pyinotify: python-pyinotify
  26. gitfs:
  27. pygit2:
  28. install_from_source: true
  29. version: 0.22.1
  30. git:
  31. require_state: false
  32. install_from_package: git
  33. libgit2:
  34. install_from_source: false
  35. RedHat:
  36. pkgrepo_name: saltstack
  37. pkgrepo_humanname: SaltStack repo for RHEL/CentOS $releasever
  38. pkgrepo: 'https://repo.saltstack.com/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}'
  39. key_url: 'https://repo.saltstack.com/{{ py_ver_repr or 'yum' }}/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
  40. pygit2: python-pygit2
  41. python_git: GitPython
  42. gitfs:
  43. gitpython:
  44. install_from_source: false
  45. pygit2:
  46. install_from_source: false
  47. git:
  48. require_state: false
  49. install_from_package: git
  50. master:
  51. gitfs_provider: pygit2
  52. Suse:
  53. pkgrepo_humanname: 'Salt releases for SLE-based SUSE products (openSUSE_Leap_{{ osrelease }})'
  54. pkgrepo: 'https://download.opensuse.org/repositories/systemsmanagement:/saltstack{{ suse_testing_repo }}/openSUSE_Leap_{{ osrelease }}/'
  55. key_url: 'https://download.opensuse.org/repositories/systemsmanagement:/saltstack{{ suse_testing_repo }}/openSUSE_Leap_{{ osrelease }}/repodata/repomd.xml.key'
  56. pygit2: python-pygit2
  57. pyinotify: python-pyinotify
  58. gitfs:
  59. pygit2:
  60. install_from_source: false
  61. git:
  62. require_state: false
  63. install_from_package: git
  64. master:
  65. gitfs_provider: pygit2
  66. Gentoo:
  67. salt_master: app-admin/salt
  68. salt_minion: app-admin/salt
  69. salt_syndic: app-admin/salt
  70. salt_api: app-admin/salt
  71. salt_cloud: app-admin/salt
  72. pyinotify: dev-python/pyinotify
  73. Arch:
  74. salt_master: salt
  75. salt_minion: salt
  76. salt_syndic: salt
  77. salt_cloud: salt
  78. salt_api: salt
  79. salt_ssh: salt
  80. python_git: python2-gitpython
  81. pygit2: python2-pygit2
  82. libgit2: libgit2
  83. pyinotify: python2-pyinotify
  84. Alpine:
  85. salt-master: salt-master
  86. salt_minion: salt-minion
  87. salt_syndic: salt-syndic
  88. salt_cloud: salt-cloud
  89. salt_api: salt-api
  90. salt_ssh: salt-ssh
  91. pygit2: py2-pygit2
  92. libgit2: libgit2
  93. FreeBSD:
  94. rootgroup: wheel
  95. salt_master: {{ py_ver_repr or 'py27' }}-salt
  96. salt_minion: {{ py_ver_repr or 'py27' }}-salt
  97. salt_syndic: {{ py_ver_repr or 'py27' }}-salt
  98. salt_cloud: {{ py_ver_repr or 'py27' }}-salt
  99. salt_api: {{ py_ver_repr or 'py27' }}-salt
  100. salt_ssh: {{ py_ver_repr or 'py27' }}-salt
  101. python_git: {{ py_ver_repr or 'py27' }}-GitPython
  102. pygit2: {{ py_ver_repr or 'py27' }}-pygit2
  103. config_path: /usr/local/etc/salt
  104. minion_service: salt_minion
  105. master_service: salt_master
  106. api_service: salt_api
  107. syndic_service: salt_syndic
  108. OpenBSD:
  109. salt_master: salt
  110. salt_minion: salt
  111. salt_syndic: salt
  112. salt_cloud: salt
  113. salt_api: salt
  114. salt_ssh: salt
  115. config_path: /etc/salt
  116. minion_service: salt_minion
  117. master_service: salt_master
  118. python_git: py-GitPython
  119. Windows:
  120. salt_minion: salt-minion{{ '-' ~ py_ver_repr if py_ver_repr else '' }}
  121. config_path: 'C:\salt\conf'
  122. minion_service: salt-minion
  123. rootuser: {{ rootuser | d('') }}
  124. MacOS:
  125. salt_minion: salt
  126. salt_minion_pkg_source: ''
  127. salt_minion_pkg_hash: ''
  128. config_path: /private/etc/salt
  129. minion_service: com.saltstack.salt.minion
  130. ## from template-formula
  131. rootuser: {{ rootuser | d('') }}
  132. rootgroup: {{ rootgroup | d('') }}