Saltstack Official Nginx Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

kitchen.yml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. log_level: info
  31. salt_version: latest
  32. require_chef: false
  33. formula: nginx
  34. salt_copy_filter:
  35. - .kitchen
  36. - .git
  37. state_top:
  38. base:
  39. '*':
  40. - nginx.ng
  41. pillars:
  42. top.sls:
  43. base:
  44. '*':
  45. - nginx
  46. pillars_from_files:
  47. nginx.sls: test/salt/default/pillar/nginx.sls
  48. verifier:
  49. name: inspec
  50. sudo: true
  51. reporter:
  52. - cli
  53. suites:
  54. # Latest distros, latest salt, python3
  55. # These distros have py3 packages available in salt's repo
  56. - name: v2019-2-py3
  57. includes:
  58. - debian-9
  59. - ubuntu-18.04
  60. provisioner:
  61. salt_bootstrap_options: -X -x python3 -d git %s
  62. salt_version: '2019.2'
  63. pillars:
  64. salt.sls:
  65. salt:
  66. release: '2019.2'
  67. py_ver: 'py3'
  68. verifier:
  69. inspec_tests:
  70. #- path: test/integration/2019-2
  71. - path: test/integration/default
  72. # Latest distros, latest salt, python2
  73. # Fedora ships updated py2 versions in their own repos
  74. - name: v2019-2-py2
  75. includes:
  76. - centos-7
  77. - fedora-29
  78. provisioner:
  79. salt_version: '2019.2'
  80. pillars:
  81. salt.sls:
  82. salt:
  83. release: '2019.2'
  84. py_ver: 'py2'
  85. verifier:
  86. inspec_tests:
  87. #- path: test/integration/2019-2
  88. - path: test/integration/default
  89. # Previous distros, previous salt, python2
  90. - name: v2018-3-py2
  91. includes:
  92. - debian-8
  93. - ubuntu-16.04
  94. - opensuse-42.3
  95. provisioner:
  96. # We require an old version of salt in the provisioner or,
  97. # the salt formula fails to downgrade to the desired version to test
  98. salt_version: '2018.3'
  99. pillars:
  100. salt.sls:
  101. salt:
  102. release: '2018.3'
  103. py_ver: 'py2'
  104. verifier:
  105. inspec_tests:
  106. #- path: test/integration/2018-3
  107. - path: test/integration/default
  108. # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
  109. # to install python2.7
  110. - name: v2018-3-py2-bootstrap
  111. includes:
  112. - centos-6
  113. provisioner:
  114. salt_bootstrap_options: -X -d stable %s
  115. salt_version: '2018.3'
  116. pillars:
  117. salt.sls:
  118. salt:
  119. release: '2018.3'
  120. py_ver: 'py2'
  121. verifier:
  122. inspec_tests:
  123. #- path: test/integration/2018-3
  124. - path: test/integration/default
  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-version
  128. includes:
  129. - fedora-28
  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: '2018.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. - path: test/integration/default
  144. # Previous distros, oldest salt, python2
  145. - name: v2017-7-py2
  146. includes:
  147. - debian-8
  148. - ubuntu-16.04
  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: '2017.7'
  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
  161. - path: test/integration/default
  162. # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
  163. # to install python2.7
  164. - name: v2017-7-py2-bootstrap
  165. includes:
  166. - centos-6
  167. provisioner:
  168. # As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
  169. salt_bootstrap_options: -X -d stable %s
  170. salt_version: '2017.7'
  171. pillars:
  172. salt.sls:
  173. salt:
  174. release: '2017.7'
  175. py_ver: 'py2'
  176. verifier:
  177. inspec_tests:
  178. #- path: test/integration/2017-7
  179. - path: test/integration/default