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.

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