Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

174 行
3.9KB

  1. ---
  2. driver:
  3. name: docker
  4. use_sudo: false
  5. privileged: true
  6. provision_command: mkdir -p /run/sshd
  7. run_command: /lib/systemd/systemd
  8. platforms:
  9. # Latest distros
  10. - name: debian-9
  11. - name: ubuntu-18.04
  12. - name: centos-7
  13. - name: fedora-29
  14. - name: opensuse-42.3
  15. driver:
  16. run_command: /usr/lib/systemd/systemd
  17. provision_command:
  18. - systemctl enable sshd.service
  19. # Previous distros
  20. - name: debian-8
  21. - name: ubuntu-16.04
  22. - name: fedora-28
  23. # Fails on Debian due to vsyscall issues, see
  24. # https://hub.docker.com/_/centos, "A note about vsyscall"
  25. - name: centos-6
  26. driver:
  27. run_command: /sbin/init
  28. provisioner:
  29. name: salt_solo
  30. log_level: info
  31. require_chef: false
  32. formula: salt
  33. salt_copy_filter:
  34. - .kitchen
  35. - .git
  36. state_top:
  37. base:
  38. '*':
  39. - salt.pkgrepo
  40. - salt.master
  41. - salt.minion
  42. pillars:
  43. top.sls:
  44. base:
  45. '*':
  46. - salt
  47. salt.sls:
  48. salt:
  49. master:
  50. fileserver_backend:
  51. - rootfs
  52. file_roots:
  53. base:
  54. - /srv/salt
  55. pillar_roots:
  56. base:
  57. - /srv/pillar
  58. minion:
  59. master: localhost
  60. fileserver_backend:
  61. - rootfs
  62. file_roots:
  63. base:
  64. - /srv/salt
  65. pillar_roots:
  66. base:
  67. - /srv/pillar
  68. verifier:
  69. name: inspec
  70. sudo: true
  71. reporter:
  72. - cli
  73. suites:
  74. # Latest distros, latest salt, python3
  75. # These distros have py3 packages available in salt's repo
  76. - name: v2019-2-py3
  77. includes:
  78. - debian-9
  79. - ubuntu-18.04
  80. - centos-7
  81. provisioner:
  82. salt_version: '2019.2.0'
  83. pillars:
  84. salt.sls:
  85. salt:
  86. release: '2019.2'
  87. py_ver: 'py3'
  88. verifier:
  89. inspec_tests:
  90. - path: test/integration/2019-2
  91. # Latest distros, latest salt, python2
  92. # Fedora ships updated py2 versions in their own repos
  93. - name: v2019-2-py2
  94. includes:
  95. - fedora-29
  96. provisioner:
  97. salt_version: '2019.2.0'
  98. pillars:
  99. salt.sls:
  100. salt:
  101. release: '2019.2'
  102. py_ver: 'py2'
  103. verifier:
  104. inspec_tests:
  105. - path: test/integration/2019-2
  106. # Previous distros, previous salt, python2
  107. - name: v2018-3-py2
  108. includes:
  109. - debian-8
  110. - ubuntu-16.04
  111. - centos-6
  112. - opensuse-42.3
  113. provisioner:
  114. # We need to require an old version of salt in the provisioner or,
  115. # the salt formula fails to downgrade to the desired version to test
  116. salt_version: '2018.3.3'
  117. pillars:
  118. salt.sls:
  119. salt:
  120. release: '2018.3'
  121. py_ver: 'py2'
  122. verifier:
  123. inspec_tests:
  124. - path: test/integration/2018-3
  125. # To tests fedora 28 & salt v2018.2, we need to force the package version
  126. # otherwise the image, which includes the 'updates' repo, will install 2019.2
  127. - name: v2018-3-py2-forced
  128. includes:
  129. - fedora-28
  130. provisioner:
  131. # We need to require an old version of salt in the provisioner or,
  132. # the salt formula fails to downgrade to the desired version to test
  133. salt_version: '2018.3.3'
  134. pillars:
  135. salt.sls:
  136. salt:
  137. release: '2018.3'
  138. py_ver: 'py2'
  139. version: '2018.3.0-1.fc28'
  140. verifier:
  141. inspec_tests:
  142. - path: test/integration/2018-3
  143. # Previous distros, oldest salt, python2
  144. - name: v2017-7-py2
  145. includes:
  146. - debian-8
  147. - ubuntu-16.04
  148. - centos-6
  149. provisioner:
  150. # We need to require an old version of salt in the provisioner or,
  151. # the salt formula fails to downgrade to the desired version to test
  152. salt_version: '2017.7.8'
  153. pillars:
  154. salt.sls:
  155. salt:
  156. release: '2017.7'
  157. py_ver: 'py2'
  158. verifier:
  159. inspec_tests:
  160. - path: test/integration/2017-7