Saltstack Official PHP 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.

275 lines
8.0KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. # For help on this file's format, see https://kitchen.ci/
  5. driver:
  6. name: docker
  7. use_sudo: false
  8. privileged: true
  9. run_command: /lib/systemd/systemd
  10. # Make sure the platforms listed below match up with
  11. # the `env.matrix` instances defined in `.travis.yml`
  12. platforms:
  13. ## SALT `develop`
  14. - name: debian-10-develop-py3
  15. driver:
  16. image: netmanagers/salt-develop-py3:debian-10
  17. provision_command:
  18. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  19. - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
  20. - name: ubuntu-1804-develop-py3
  21. driver:
  22. image: netmanagers/salt-develop-py3:ubuntu-18.04
  23. provision_command:
  24. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  25. - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
  26. - name: centos-7-develop-py3
  27. driver:
  28. image: netmanagers/salt-develop-py3:centos-7
  29. provision_command:
  30. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  31. - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
  32. - name: fedora-30-develop-py3
  33. driver:
  34. image: netmanagers/salt-develop-py3:fedora-30
  35. provision_command:
  36. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  37. - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
  38. - name: opensuse-leap-15-develop-py3
  39. driver:
  40. image: netmanagers/salt-develop-py3:opensuse-leap-15
  41. provision_command:
  42. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  43. - sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
  44. run_command: /usr/lib/systemd/systemd
  45. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  46. # => SCP did not finish successfully (255): (Net::SCP::Error)
  47. transport:
  48. max_ssh_sessions: 1
  49. - name: amazonlinux-2-develop-py2
  50. driver:
  51. image: netmanagers/salt-develop-py2:amazonlinux-2
  52. provision_command:
  53. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  54. - sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
  55. - name: arch-base-latest-develop-py2
  56. driver:
  57. image: netmanagers/salt-develop-py2:arch-base-latest
  58. provision_command:
  59. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  60. - sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
  61. run_command: /usr/lib/systemd/systemd
  62. ## SALT `2019.2`
  63. - name: debian-9-2019-2-py3
  64. driver:
  65. image: netmanagers/salt-2019.2-py3:debian-9
  66. - name: ubuntu-1804-2019-2-py3
  67. driver:
  68. image: netmanagers/salt-2019.2-py3:ubuntu-18.04
  69. - name: centos-7-2019-2-py3
  70. driver:
  71. image: netmanagers/salt-2019.2-py3:centos-7
  72. - name: fedora-30-2019-2-py3
  73. driver:
  74. image: netmanagers/salt-2019.2-py3:fedora-30
  75. - name: opensuse-leap-15-2019-2-py3
  76. driver:
  77. image: netmanagers/salt-2019.2-py3:opensuse-leap-15
  78. run_command: /usr/lib/systemd/systemd
  79. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  80. # => SCP did not finish successfully (255): (Net::SCP::Error)
  81. transport:
  82. max_ssh_sessions: 1
  83. - name: amazonlinux-2-2019-2-py2
  84. driver:
  85. image: netmanagers/salt-2019.2-py2:amazonlinux-2
  86. - name: arch-base-latest-2019-2-py2
  87. driver:
  88. image: netmanagers/salt-2019.2-py2:arch-base-latest
  89. run_command: /usr/lib/systemd/systemd
  90. ## SALT `2018.3`
  91. - name: debian-9-2018-3-py2
  92. driver:
  93. image: netmanagers/salt-2018.3-py2:debian-9
  94. - name: ubuntu-1604-2018-3-py2
  95. driver:
  96. image: netmanagers/salt-2018.3-py2:ubuntu-16.04
  97. - name: centos-7-2018-3-py2
  98. driver:
  99. image: netmanagers/salt-2018.3-py2:centos-7
  100. - name: fedora-29-2018-3-py2
  101. driver:
  102. image: netmanagers/salt-2018.3-py2:fedora-29
  103. - name: opensuse-leap-15-2018-3-py2
  104. driver:
  105. image: netmanagers/salt-2018.3-py2:opensuse-leap-15
  106. run_command: /usr/lib/systemd/systemd
  107. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  108. # => SCP did not finish successfully (255): (Net::SCP::Error)
  109. transport:
  110. max_ssh_sessions: 1
  111. - name: amazonlinux-2-2018-3-py2
  112. driver:
  113. image: netmanagers/salt-2018.3-py2:amazonlinux-2
  114. - name: arch-base-latest-2018-3-py2
  115. driver:
  116. image: netmanagers/salt-2018.3-py2:arch-base-latest
  117. run_command: /usr/lib/systemd/systemd
  118. ## SALT `2017.7`
  119. - name: debian-8-2017-7-py2
  120. driver:
  121. image: netmanagers/salt-2017.7-py2:debian-8
  122. - name: ubuntu-1604-2017-7-py2
  123. driver:
  124. image: netmanagers/salt-2017.7-py2:ubuntu-16.04
  125. - name: centos-6-2017-7-py2
  126. driver:
  127. image: netmanagers/salt-2017.7-py2:centos-6
  128. run_command: /sbin/init
  129. - name: fedora-29-2017-7-py2
  130. driver:
  131. image: netmanagers/salt-2017.7-py2:fedora-29
  132. - name: opensuse-leap-15-2017-7-py2
  133. driver:
  134. image: netmanagers/salt-2017.7-py2:opensuse-leap-15
  135. run_command: /usr/lib/systemd/systemd
  136. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  137. # => SCP did not finish successfully (255): (Net::SCP::Error)
  138. transport:
  139. max_ssh_sessions: 1
  140. - name: amazonlinux-2-2017-7-py2
  141. driver:
  142. image: netmanagers/salt-2017.7-py2:amazonlinux-2
  143. - name: arch-base-latest-2017-7-py2
  144. driver:
  145. image: netmanagers/salt-2017.7-py2:arch-base-latest
  146. run_command: /usr/lib/systemd/systemd
  147. provisioner:
  148. name: salt_solo
  149. log_level: debug
  150. salt_install: none
  151. require_chef: false
  152. formula: php
  153. salt_copy_filter:
  154. - .kitchen
  155. - .git
  156. verifier:
  157. # https://www.inspec.io/
  158. name: inspec
  159. sudo: true
  160. # cli, documentation, html, progress, json, json-min, json-rspec, junit
  161. reporter:
  162. - cli
  163. suites:
  164. - name: debian
  165. includes:
  166. - debian-10-develop-py3
  167. - debian-9-2019-2-py3
  168. - debian-9-2018-3-py2
  169. - debian-8-2017-7-py2
  170. provisioner:
  171. state_top:
  172. base:
  173. '*':
  174. - php.repo
  175. - php.fpm.install
  176. - php.fpm.config
  177. - php.fpm.pools
  178. - php.modules
  179. - php.fpm.service
  180. pillars:
  181. top.sls:
  182. base:
  183. '*':
  184. - php
  185. pillars_from_files:
  186. php.sls: test/salt/pillar/debian.sls
  187. verifier:
  188. inspec_tests:
  189. - path: test/integration/default
  190. - name: ubuntu
  191. includes:
  192. - ubuntu-1804-develop-py3
  193. - ubuntu-1804-2019-2-py3
  194. - ubuntu-1604-2018-3-py2
  195. - ubuntu-1604-2017-7-py2
  196. provisioner:
  197. state_top:
  198. base:
  199. '*':
  200. - php.repo
  201. - php.fpm.install
  202. - php.fpm.config
  203. - php.fpm.pools
  204. - php.modules
  205. - php.fpm.service
  206. pillars:
  207. top.sls:
  208. base:
  209. '*':
  210. - php
  211. - ubuntu
  212. pillars_from_files:
  213. php.sls: test/salt/pillar/debian.sls
  214. ubuntu.sls: test/salt/pillar/ubuntu.sls
  215. verifier:
  216. inspec_tests:
  217. - path: test/integration/default
  218. - name: redhat
  219. includes:
  220. - centos-7-develop-py3
  221. - fedora-30-develop-py3
  222. - amazonlinux-2-develop-py2
  223. - centos-7-2019-2-py3
  224. - fedora-30-2019-2-py3
  225. - amazonlinux-2-2019-2-py2
  226. - centos-7-2018-3-py2
  227. - fedora-29-2018-3-py2
  228. - amazonlinux-2-2018-3-py2
  229. - centos-6-2017-7-py2
  230. - fedora-29-2017-7-py2
  231. - amazonlinux-2-2017-7-py2
  232. provisioner:
  233. state_top:
  234. base:
  235. '*':
  236. - php
  237. pillars:
  238. top.sls:
  239. base:
  240. '*':
  241. - php
  242. pillars_from_files:
  243. php.sls: test/salt/pillar/redhat.sls
  244. verifier:
  245. inspec_tests:
  246. - path: test/integration/default
  247. - name: suse
  248. includes:
  249. - opensuse-leap-15-develop-py3
  250. - opensuse-leap-15-2019-2-py3
  251. - opensuse-leap-15-2018-3-py2
  252. - opensuse-leap-15-2017-7-py2
  253. provisioner:
  254. state_top:
  255. base:
  256. '*':
  257. - php
  258. pillars:
  259. top.sls:
  260. base:
  261. '*':
  262. - php
  263. pillars_from_files:
  264. php.sls: test/salt/pillar/suse.sls
  265. verifier:
  266. inspec_tests:
  267. - path: test/integration/default