Saltstack Official Salt Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

kitchen.yml 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. # centos-6 guest fails on Debian hosts 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. # If we don't force bootstrapping with python3, centos bootstraps using python2
  84. # and then, when switching the repo to python3 and tries to install
  85. # the packages, complains with
  86. # Downloading packages:
  87. # https://repo.saltstack.com/py3/re.........rpm: [Errno -1] Package does not
  88. # match intended download. Suggestion: run yum --enablerepo=saltstack clean metadata
  89. salt_bootstrap_options: -X -x python3 -d git %s
  90. salt_version: '2019.2'
  91. pillars:
  92. salt.sls:
  93. salt:
  94. release: '2019.2'
  95. py_ver: 'py3'
  96. verifier:
  97. inspec_tests:
  98. - path: test/integration/2019-2
  99. # Latest distros, latest salt, python2
  100. # Fedora ships updated py2 versions in their own repos
  101. - name: v2019-2-py2
  102. includes:
  103. - fedora-29
  104. provisioner:
  105. salt_version: '2019.2'
  106. pillars:
  107. salt.sls:
  108. salt:
  109. release: '2019.2'
  110. py_ver: 'py2'
  111. verifier:
  112. inspec_tests:
  113. - path: test/integration/2019-2
  114. # Previous distros, previous salt, python2
  115. - name: v2018-3-py2
  116. includes:
  117. - debian-8
  118. - ubuntu-16.04
  119. - opensuse-42.3
  120. provisioner:
  121. # We require an old version of salt in the provisioner or,
  122. # the salt formula fails to downgrade to the desired version to test
  123. salt_version: '2018.3'
  124. pillars:
  125. salt.sls:
  126. salt:
  127. release: '2018.3'
  128. py_ver: 'py2'
  129. verifier:
  130. inspec_tests:
  131. - path: test/integration/2018-3
  132. # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
  133. # to install python2.7
  134. - name: v2018-3-py2-bootstrap
  135. includes:
  136. - centos-6
  137. provisioner:
  138. salt_bootstrap_options: -X -d stable %s
  139. salt_version: '2018.3'
  140. pillars:
  141. salt.sls:
  142. salt:
  143. release: '2018.3'
  144. py_ver: 'py2'
  145. verifier:
  146. inspec_tests:
  147. - path: test/integration/2018-3
  148. # To tests fedora 28 & salt v2018.2, we need to force the package version
  149. # otherwise the image, which includes the 'updates' repo, will install 2019.2
  150. - name: v2018-3-py2-forced-version
  151. includes:
  152. - fedora-28
  153. provisioner:
  154. # We require an old version of salt in the provisioner or,
  155. # the salt formula fails to downgrade to the desired version to test
  156. salt_version: '2018.3'
  157. pillars:
  158. salt.sls:
  159. salt:
  160. release: '2018.3'
  161. py_ver: 'py2'
  162. version: '2018.3.0-1.fc28'
  163. verifier:
  164. inspec_tests:
  165. - path: test/integration/2018-3
  166. # Previous distros, oldest salt, python2
  167. - name: v2017-7-py2
  168. includes:
  169. - debian-8
  170. - ubuntu-16.04
  171. provisioner:
  172. # We require an old version of salt in the provisioner or,
  173. # the salt formula fails to downgrade to the desired version to test
  174. salt_version: '2017.7'
  175. pillars:
  176. salt.sls:
  177. salt:
  178. release: '2017.7'
  179. py_ver: 'py2'
  180. verifier:
  181. inspec_tests:
  182. - path: test/integration/2017-7
  183. # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
  184. # to install python2.7
  185. - name: v2017-7-py2-bootstrap
  186. includes:
  187. - centos-6
  188. provisioner:
  189. # As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
  190. salt_bootstrap_options: -X -d stable %s
  191. salt_version: '2017.7'
  192. pillars:
  193. salt.sls:
  194. salt:
  195. release: '2017.7'
  196. py_ver: 'py2'
  197. verifier:
  198. inspec_tests:
  199. - path: test/integration/2017-7