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.

218 linhas
5.7KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. driver:
  5. name: docker
  6. use_sudo: false
  7. privileged: true
  8. provision_command: mkdir -p /run/sshd
  9. run_command: /lib/systemd/systemd
  10. platforms:
  11. # Latest distros
  12. - name: debian-9
  13. - name: ubuntu-18.04
  14. - name: centos-7
  15. - name: fedora-30
  16. - name: opensuse-15.0
  17. driver:
  18. image: opensuse/leap:15.0
  19. run_command: /usr/lib/systemd/systemd
  20. provision_command:
  21. - systemctl enable sshd.service
  22. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  23. # => SCP did not finish successfully (255): (Net::SCP::Error)
  24. transport:
  25. max_ssh_sessions: 1
  26. # Previous distros
  27. - name: debian-8
  28. - name: ubuntu-16.04
  29. - name: fedora-29
  30. # centos-6 guest fails on Debian hosts due to vsyscall issues, see
  31. # https://hub.docker.com/_/centos, "A note about vsyscall"
  32. - name: centos-6
  33. driver:
  34. run_command: /sbin/init
  35. provisioner:
  36. name: salt_solo
  37. salt_bootstrap_options: -X -d git %s
  38. log_level: info
  39. require_chef: false
  40. formula: salt
  41. salt_copy_filter:
  42. - .kitchen
  43. - .git
  44. state_top:
  45. base:
  46. '*':
  47. - salt.pkgrepo
  48. - salt.master
  49. - salt.minion
  50. verifier:
  51. # https://www.inspec.io/
  52. name: inspec
  53. sudo: true
  54. # cli, documentation, html, progress, json, json-min, json-rspec, junit
  55. reporter:
  56. - cli
  57. suites:
  58. # Latest distros, salt develop, python3
  59. # These distros have py3 packages available in salt's repo
  60. - name: develop-py3
  61. includes:
  62. - debian-9
  63. - ubuntu-18.04
  64. - opensuse-15.0
  65. provisioner:
  66. salt_bootstrap_options: -X -x python3 -d git %s
  67. salt_version: 'develop'
  68. pillars:
  69. top.sls:
  70. base:
  71. '*':
  72. - salt
  73. - develop-py3
  74. pillars_from_files:
  75. salt.sls: test/salt/pillar/salt.sls
  76. develop-py3.sls: test/salt/pillar/develop-py3.sls
  77. verifier:
  78. inspec_tests:
  79. - path: test/integration/develop
  80. # Latest distros, latest salt, python3
  81. # These distros have py3 packages available in salt's repo
  82. - name: v2019-2-py3
  83. includes:
  84. - debian-9
  85. - ubuntu-18.04
  86. - opensuse-15.0
  87. provisioner:
  88. salt_bootstrap_options: -X -x python3 -d git %s
  89. salt_version: '2019.2'
  90. pillars:
  91. top.sls:
  92. base:
  93. '*':
  94. - salt
  95. - v2019-2-py3
  96. pillars_from_files:
  97. salt.sls: test/salt/pillar/salt.sls
  98. v2019-2-py3.sls: test/salt/pillar/v2019-2-py3.sls
  99. verifier:
  100. inspec_tests:
  101. - path: test/integration/2019-2
  102. # Latest distros, latest salt, python2
  103. # Fedora ships updated py2 versions in their own repos
  104. - name: v2019-2-py2
  105. includes:
  106. - centos-7
  107. - fedora-30
  108. provisioner:
  109. salt_version: '2019.2'
  110. pillars:
  111. top.sls:
  112. base:
  113. '*':
  114. - salt
  115. - v2019-2-py2
  116. pillars_from_files:
  117. salt.sls: test/salt/pillar/salt.sls
  118. v2019-2-py2.sls: test/salt/pillar/v2019-2-py2.sls
  119. verifier:
  120. inspec_tests:
  121. - path: test/integration/2019-2
  122. # Previous distros, previous salt, python2
  123. - name: v2018-3-py2
  124. includes:
  125. - debian-8
  126. - ubuntu-16.04
  127. - centos-7
  128. provisioner:
  129. # We require an old version of salt in the provisioner or,
  130. # the salt formula fails to downgrade to the desired version to test
  131. salt_version: '2018.3'
  132. pillars:
  133. top.sls:
  134. base:
  135. '*':
  136. - salt
  137. - v2018-3-py2
  138. pillars_from_files:
  139. salt.sls: test/salt/pillar/salt.sls
  140. v2018-3-py2.sls: test/salt/pillar/v2018-3-py2.sls
  141. verifier:
  142. inspec_tests:
  143. - path: test/integration/2018-3
  144. # To test fedora 29 & salt v2018.3, we need to force the package version
  145. # otherwise the image, which includes the 'updates' repo, will install 2019.2
  146. - name: v2018-3-py2-forced-version
  147. includes:
  148. - fedora-29
  149. provisioner:
  150. # We 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: '2018.3'
  153. pillars:
  154. top.sls:
  155. base:
  156. '*':
  157. - salt
  158. - v2018-3-py2-forced-version
  159. pillars_from_files:
  160. salt.sls: test/salt/pillar/salt.sls
  161. v2018-3-py2-forced-version.sls: test/salt/pillar/v2018-3-py2-forced-version.sls
  162. verifier:
  163. inspec_tests:
  164. - path: test/integration/2018-3
  165. # Previous distros, oldest salt, python2
  166. - name: v2017-7-py2
  167. includes:
  168. - debian-8
  169. - ubuntu-16.04
  170. provisioner:
  171. # We require an old version of salt in the provisioner or,
  172. # the salt formula fails to downgrade to the desired version to test
  173. salt_version: '2017.7'
  174. pillars:
  175. top.sls:
  176. base:
  177. '*':
  178. - salt
  179. - v2017-7-py2
  180. pillars_from_files:
  181. salt.sls: test/salt/pillar/salt.sls
  182. v2017-7-py2.sls: test/salt/pillar/v2017-7-py2.sls
  183. verifier:
  184. inspec_tests:
  185. - path: test/integration/2017-7
  186. # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
  187. # to install python2.7
  188. - name: v2017-7-py2-bootstrap
  189. includes:
  190. - centos-6
  191. provisioner:
  192. # As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
  193. salt_bootstrap_options: -X -d stable %s
  194. salt_version: '2017.7'
  195. pillars:
  196. top.sls:
  197. base:
  198. '*':
  199. - salt
  200. - v2017-7-py2
  201. pillars_from_files:
  202. salt.sls: test/salt/pillar/salt.sls
  203. v2017-7-py2.sls: test/salt/pillar/v2017-7-py2.sls
  204. verifier:
  205. inspec_tests:
  206. - path: test/integration/2017-7