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.

140 lines
3.9KB

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