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.

300 lines
9.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` => `master`
  14. - name: debian-10-master-py3
  15. driver:
  16. image: netmanagers/salt-master-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 master
  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: opensuse/leap:15
  41. provision_command:
  42. # yamllint disable-line rule:line-length
  43. - zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python3-pip
  44. - systemctl enable sshd.service
  45. run_command: /usr/lib/systemd/systemd
  46. provisioner:
  47. salt_bootstrap_options: -XdPfrq -x python3 git develop
  48. salt_install: bootstrap
  49. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  50. # => SCP did not finish successfully (255): (Net::SCP::Error)
  51. transport:
  52. max_ssh_sessions: 1
  53. - name: amazonlinux-2-develop-py2
  54. driver:
  55. image: netmanagers/salt-develop-py2:amazonlinux-2
  56. provision_command:
  57. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  58. - sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
  59. - name: arch-base-latest-develop-py2
  60. driver:
  61. image: netmanagers/salt-develop-py2:arch-base-latest
  62. provision_command:
  63. - curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
  64. - sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
  65. run_command: /usr/lib/systemd/systemd
  66. ## SALT `2019.2`
  67. - name: debian-9-2019-2-py3
  68. driver:
  69. image: netmanagers/salt-2019.2-py3:debian-9
  70. - name: ubuntu-1804-2019-2-py3
  71. driver:
  72. image: netmanagers/salt-2019.2-py3:ubuntu-18.04
  73. - name: centos-7-2019-2-py3
  74. driver:
  75. image: netmanagers/salt-2019.2-py3:centos-7
  76. - name: fedora-30-2019-2-py3
  77. driver:
  78. image: netmanagers/salt-2019.2-py3:fedora-30
  79. - name: opensuse-leap-15-2019-2-py3
  80. driver:
  81. image: opensuse/leap:15
  82. provision_command:
  83. # yamllint disable-line rule:line-length
  84. - zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python3-pip
  85. - systemctl enable sshd.service
  86. run_command: /usr/lib/systemd/systemd
  87. provisioner:
  88. salt_bootstrap_options: -XdPfrq -x python3 git 2019.2
  89. salt_install: bootstrap
  90. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  91. # => SCP did not finish successfully (255): (Net::SCP::Error)
  92. transport:
  93. max_ssh_sessions: 1
  94. - name: amazonlinux-2-2019-2-py2
  95. driver:
  96. image: netmanagers/salt-2019.2-py2:amazonlinux-2
  97. - name: arch-base-latest-2019-2-py2
  98. driver:
  99. image: netmanagers/salt-2019.2-py2:arch-base-latest
  100. run_command: /usr/lib/systemd/systemd
  101. ## SALT `2018.3`
  102. - name: debian-9-2018-3-py2
  103. driver:
  104. image: netmanagers/salt-2018.3-py2:debian-9
  105. - name: ubuntu-1604-2018-3-py2
  106. driver:
  107. image: netmanagers/salt-2018.3-py2:ubuntu-16.04
  108. - name: centos-7-2018-3-py2
  109. driver:
  110. image: netmanagers/salt-2018.3-py2:centos-7
  111. - name: fedora-29-2018-3-py2
  112. driver:
  113. image: netmanagers/salt-2018.3-py2:fedora-29
  114. - name: opensuse-leap-15-2018-3-py2
  115. driver:
  116. image: opensuse/leap:15
  117. provision_command:
  118. # yamllint disable-line rule:line-length
  119. - zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python2-pip
  120. - systemctl enable sshd.service
  121. run_command: /usr/lib/systemd/systemd
  122. provisioner:
  123. salt_bootstrap_options: -XdPfrq -x python2 git 2018.3
  124. salt_install: bootstrap
  125. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  126. # => SCP did not finish successfully (255): (Net::SCP::Error)
  127. transport:
  128. max_ssh_sessions: 1
  129. - name: amazonlinux-2-2018-3-py2
  130. driver:
  131. image: netmanagers/salt-2018.3-py2:amazonlinux-2
  132. - name: arch-base-latest-2018-3-py2
  133. driver:
  134. image: netmanagers/salt-2018.3-py2:arch-base-latest
  135. run_command: /usr/lib/systemd/systemd
  136. ## SALT `2017.7`
  137. - name: debian-8-2017-7-py2
  138. driver:
  139. image: netmanagers/salt-2017.7-py2:debian-8
  140. - name: ubuntu-1604-2017-7-py2
  141. driver:
  142. image: netmanagers/salt-2017.7-py2:ubuntu-16.04
  143. - name: centos-6-2017-7-py2
  144. driver:
  145. image: netmanagers/salt-2017.7-py2:centos-6
  146. run_command: /sbin/init
  147. - name: fedora-29-2017-7-py2
  148. driver:
  149. image: netmanagers/salt-2017.7-py2:fedora-29
  150. - name: opensuse-leap-15-2017-7-py2
  151. driver:
  152. image: opensuse/leap:15
  153. provision_command:
  154. # yamllint disable-line rule:line-length
  155. - zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python2-pip
  156. - systemctl enable sshd.service
  157. run_command: /usr/lib/systemd/systemd
  158. provisioner:
  159. salt_bootstrap_options: -XdPfrq -x python2 git 2017.7
  160. salt_install: bootstrap
  161. # Workaround to avoid intermittent failures on `opensuse-leap-15`:
  162. # => SCP did not finish successfully (255): (Net::SCP::Error)
  163. transport:
  164. max_ssh_sessions: 1
  165. - name: amazonlinux-2-2017-7-py2
  166. driver:
  167. image: netmanagers/salt-2017.7-py2:amazonlinux-2
  168. - name: arch-base-latest-2017-7-py2
  169. driver:
  170. image: netmanagers/salt-2017.7-py2:arch-base-latest
  171. run_command: /usr/lib/systemd/systemd
  172. provisioner:
  173. name: salt_solo
  174. log_level: debug
  175. salt_install: none
  176. require_chef: false
  177. formula: php
  178. salt_copy_filter:
  179. - .kitchen
  180. - .git
  181. verifier:
  182. # https://www.inspec.io/
  183. name: inspec
  184. sudo: true
  185. # cli, documentation, html, progress, json, json-min, json-rspec, junit
  186. reporter:
  187. - cli
  188. suites:
  189. - name: debian
  190. includes:
  191. - debian-10-master-py3
  192. - debian-9-2019-2-py3
  193. - debian-9-2018-3-py2
  194. - debian-8-2017-7-py2
  195. provisioner:
  196. state_top:
  197. base:
  198. '*':
  199. - php.repo
  200. - php.fpm.install
  201. - php.fpm.config
  202. - php.fpm.pools
  203. - php.modules
  204. - php.fpm.service
  205. pillars:
  206. top.sls:
  207. base:
  208. '*':
  209. - php
  210. pillars_from_files:
  211. php.sls: test/salt/pillar/debian.sls
  212. verifier:
  213. inspec_tests:
  214. - path: test/integration/default
  215. - name: ubuntu
  216. includes:
  217. - ubuntu-1804-develop-py3
  218. - ubuntu-1804-2019-2-py3
  219. - ubuntu-1604-2018-3-py2
  220. - ubuntu-1604-2017-7-py2
  221. provisioner:
  222. state_top:
  223. base:
  224. '*':
  225. - php.repo
  226. - php.fpm.install
  227. - php.fpm.config
  228. - php.fpm.pools
  229. - php.modules
  230. - php.fpm.service
  231. pillars:
  232. top.sls:
  233. base:
  234. '*':
  235. - php
  236. - ubuntu
  237. pillars_from_files:
  238. php.sls: test/salt/pillar/debian.sls
  239. ubuntu.sls: test/salt/pillar/ubuntu.sls
  240. verifier:
  241. inspec_tests:
  242. - path: test/integration/default
  243. - name: redhat
  244. includes:
  245. - centos-7-develop-py3
  246. - fedora-30-develop-py3
  247. - amazonlinux-2-develop-py2
  248. - centos-7-2019-2-py3
  249. - fedora-30-2019-2-py3
  250. - amazonlinux-2-2019-2-py2
  251. - centos-7-2018-3-py2
  252. - fedora-29-2018-3-py2
  253. - amazonlinux-2-2018-3-py2
  254. - centos-6-2017-7-py2
  255. - fedora-29-2017-7-py2
  256. - amazonlinux-2-2017-7-py2
  257. provisioner:
  258. state_top:
  259. base:
  260. '*':
  261. - php
  262. pillars:
  263. top.sls:
  264. base:
  265. '*':
  266. - php
  267. pillars_from_files:
  268. php.sls: test/salt/pillar/redhat.sls
  269. verifier:
  270. inspec_tests:
  271. - path: test/integration/default
  272. - name: suse
  273. includes:
  274. - opensuse-leap-15-develop-py3
  275. - opensuse-leap-15-2019-2-py3
  276. - opensuse-leap-15-2018-3-py2
  277. - opensuse-leap-15-2017-7-py2
  278. provisioner:
  279. state_top:
  280. base:
  281. '*':
  282. - php
  283. pillars:
  284. top.sls:
  285. base:
  286. '*':
  287. - php
  288. pillars_from_files:
  289. php.sls: test/salt/pillar/suse.sls
  290. verifier:
  291. inspec_tests:
  292. - path: test/integration/default