Saltstack Official Nginx Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

105 rindas
2.7KB

  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. driver_config:
  8. use_sudo: false
  9. privileged: true
  10. provision_command: mkdir -p /run/sshd
  11. # Make sure the platforms listed below match up with
  12. # the `env.matrix` instances defined in `.travis.yml`
  13. platforms:
  14. # The `run_command` used for each platform is required to
  15. # test `systemd` services in docker
  16. - name: debian-9
  17. driver_config:
  18. image: debian:9
  19. run_command: /lib/systemd/systemd
  20. provision_command:
  21. - apt-get update && apt-get install -y udev
  22. - name: debian-8
  23. driver_config:
  24. image: debian:8
  25. run_command: /lib/systemd/systemd
  26. provision_command:
  27. - apt-get update && apt-get install -y udev
  28. - name: ubuntu-18.04
  29. driver_config:
  30. image: ubuntu:18.04
  31. run_command: /lib/systemd/systemd
  32. provision_command:
  33. - apt-get update && apt-get install -y udev
  34. - name: ubuntu-16.04
  35. driver_config:
  36. image: ubuntu:16.04
  37. run_command: /lib/systemd/systemd
  38. provision_command:
  39. - apt-get update && apt-get install -y udev
  40. - name: centos-7
  41. driver_config:
  42. image: centos:7
  43. run_command: /usr/lib/systemd/systemd
  44. # - name: centos-6
  45. # driver_config:
  46. # image: centos:6
  47. # run_command: /usr/lib/systemd/systemd
  48. - name: fedora
  49. driver_config:
  50. image: fedora
  51. run_command: /usr/lib/systemd/systemd
  52. provision_command:
  53. - yum -y update && yum -y install udev
  54. # As of February 2019, there have been problems getting `opensuse` to work:
  55. # * `opensuse` is deprecated
  56. # * `opensuse/leap` grabs `15.x`, which doesn't run the `inspec` tests
  57. # * `opensuse/tumbleweed` doesn't install `salt-minion`
  58. # * `opensuse/leap:42.3` does work
  59. # * `opensuse/salt-minion` uses `42.3` with `salt-minion` pre-installed
  60. - name: opensuse-leap-salt-minion
  61. driver_config:
  62. image: opensuse/salt-minion
  63. run_command: /usr/lib/systemd/systemd
  64. provision_command:
  65. - zypper refresh && zypper install -y udev
  66. - systemctl enable sshd.service
  67. - cat /etc/os-release
  68. provisioner:
  69. name: salt_solo
  70. log_level: debug
  71. require_chef: false
  72. salt_version: latest
  73. formula: nginx
  74. salt_copy_filter:
  75. - .kitchen
  76. - .git
  77. pillars_from_files:
  78. nginx.sls: test/salt/default/pillar/nginx.sls
  79. pillars:
  80. top.sls:
  81. base:
  82. '*':
  83. - nginx
  84. state_top:
  85. base:
  86. '*':
  87. - nginx.ng
  88. verifier:
  89. # https://www.inspec.io/
  90. name: inspec
  91. sudo: true
  92. # cli, documentation, html, progress, json, json-min, json-rspec, junit
  93. reporter:
  94. - cli
  95. inspec_tests:
  96. - path: test/integration/default
  97. suites:
  98. - name: default