Saltstack Official Nginx Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
5.1KB

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