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.

141 line
3.9KB

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