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.

146 lines
4.2KB

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