Saltstack Official Salt Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

143 linhas
4.4KB

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