Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

209 lines
5.0KB

  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. salt_bootstrap_options: -X -d git %s
  31. log_level: info
  32. require_chef: false
  33. formula: salt
  34. salt_copy_filter:
  35. - .kitchen
  36. - .git
  37. state_top:
  38. base:
  39. '*':
  40. - salt.pkgrepo
  41. - salt.master
  42. - salt.minion
  43. pillars:
  44. top.sls:
  45. base:
  46. '*':
  47. - salt
  48. salt.sls:
  49. salt:
  50. master:
  51. fileserver_backend:
  52. - rootfs
  53. file_roots:
  54. base:
  55. - /srv/salt
  56. pillar_roots:
  57. base:
  58. - /srv/pillar
  59. minion:
  60. master: localhost
  61. fileserver_backend:
  62. - rootfs
  63. file_roots:
  64. base:
  65. - /srv/salt
  66. pillar_roots:
  67. base:
  68. - /srv/pillar
  69. verifier:
  70. name: inspec
  71. sudo: true
  72. reporter:
  73. - cli
  74. suites:
  75. # Latest distros, latest salt, python3
  76. # These distros have py3 packages available in salt's repo
  77. - name: v2019-2-py3
  78. includes:
  79. - debian-9
  80. - ubuntu-18.04
  81. - centos-7
  82. provisioner:
  83. salt_version: '2019.2'
  84. pillars:
  85. salt.sls:
  86. salt:
  87. release: '2019.2'
  88. py_ver: 'py3'
  89. verifier:
  90. inspec_tests:
  91. - path: test/integration/2019-2
  92. # Latest distros, latest salt, python2
  93. # Fedora ships updated py2 versions in their own repos
  94. - name: v2019-2-py2
  95. includes:
  96. - fedora-29
  97. provisioner:
  98. salt_version: '2019.2'
  99. pillars:
  100. salt.sls:
  101. salt:
  102. release: '2019.2'
  103. py_ver: 'py2'
  104. verifier:
  105. inspec_tests:
  106. - path: test/integration/2019-2
  107. # Previous distros, previous salt, python2
  108. - name: v2018-3-py2
  109. includes:
  110. - debian-8
  111. - ubuntu-16.04
  112. - opensuse-42.3
  113. provisioner:
  114. # We 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'
  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 test salt on centos-6 we need to first use a python-2.6 version of salt (2016.11)
  126. # and then upgrade it. See https://github.com/saltstack/salt/issues/47864
  127. - name: v2018-3-py2-bootstrap-2016-11
  128. includes:
  129. - centos-6
  130. provisioner:
  131. # We 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: '2016.11'
  134. pillars:
  135. salt.sls:
  136. salt:
  137. release: '2018.3'
  138. py_ver: 'py2'
  139. verifier:
  140. inspec_tests:
  141. - path: test/integration/2018-3
  142. # To tests fedora 28 & salt v2018.2, we need to force the package version
  143. # otherwise the image, which includes the 'updates' repo, will install 2019.2
  144. - name: v2018-3-py2-forced-version
  145. includes:
  146. - fedora-28
  147. provisioner:
  148. # We require an old version of salt in the provisioner or,
  149. # the salt formula fails to downgrade to the desired version to test
  150. salt_version: '2018.3'
  151. pillars:
  152. salt.sls:
  153. salt:
  154. release: '2018.3'
  155. py_ver: 'py2'
  156. version: '2018.3.0-1.fc28'
  157. verifier:
  158. inspec_tests:
  159. - path: test/integration/2018-3
  160. # Previous distros, oldest salt, python2
  161. - name: v2017-7-py2
  162. includes:
  163. - debian-8
  164. - ubuntu-16.04
  165. provisioner:
  166. # We require an old version of salt in the provisioner or,
  167. # the salt formula fails to downgrade to the desired version to test
  168. salt_version: '2017.7'
  169. pillars:
  170. salt.sls:
  171. salt:
  172. release: '2017.7'
  173. py_ver: 'py2'
  174. verifier:
  175. inspec_tests:
  176. - path: test/integration/2017-7
  177. # To test salt on centos-6 we need to first use a python-2.6 version of salt (2016.11)
  178. # and then upgrade it. See https://github.com/saltstack/salt/issues/47864
  179. - name: v2017-7-py2-bootstrap-2016-11
  180. includes:
  181. - centos-6
  182. provisioner:
  183. # We require an old version of salt in the provisioner or,
  184. # the salt formula fails to downgrade to the desired version to test
  185. salt_version: '2016.11'
  186. pillars:
  187. salt.sls:
  188. salt:
  189. release: '2017.7'
  190. py_ver: 'py2'
  191. verifier:
  192. inspec_tests:
  193. - path: test/integration/2017-7