Saltstack Official Salt Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

142 lines
4.2KB

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