1
0

.kitchen.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. driver:
  2. name: docker
  3. use_sudo: false
  4. privileged: true
  5. <% if File.exists?('driver.yml') %>
  6. <% File.read('driver.yml').split(/\n/).each do |line| %>
  7. <%= line %>
  8. <% end %>
  9. <% end %>
  10. provisioner:
  11. name: salt_solo
  12. salt_install: pip
  13. pip_pkg: <%= ENV['SALT_SDIST_PATH'] || 'salt' %>
  14. pip_index_url: <%= ENV['SALT_INDEX_URL'] || 'https://pypi.python.org/simple' %>
  15. require_chef: false
  16. formula: states
  17. <% if File.exists?('provisioner.yml') %>
  18. <% File.read('provisioner.yml').split(/\n/).each do |line| %>
  19. <%= line %>
  20. <% end %>
  21. <% end %>
  22. <% if File.exists?('state_top.yml') %>
  23. <% File.read('state_top.yml').split(/\n/).each do |line| %>
  24. <%= line %>
  25. <% end %>
  26. <% else %>
  27. state_top:
  28. base:
  29. '*':
  30. - states
  31. <% end %>
  32. <% if File.exists?('pillars.yml') %>
  33. <% File.read('pillars.yml').split(/\n/).each do |line| %>
  34. <%= line %>
  35. <% end %>
  36. <% end %>
  37. <% if File.exists?('platforms.yml') %>
  38. <%= File.read('platforms.yml') %>
  39. <% else %>
  40. platforms:
  41. - name: centos
  42. driver_config:
  43. run_command: /usr/lib/systemd/systemd
  44. provision_command:
  45. - yum install -y epel-release
  46. - yum install -y python-pip python-devel gcc git gcc-c++
  47. - name: opensuse
  48. driver_config:
  49. run_command: /usr/lib/systemd/systemd
  50. provision_command:
  51. - systemctl enable sshd.service
  52. - zypper install -y python-pip python-devel gcc git gcc-c++
  53. - name: ubuntu
  54. driver_config:
  55. run_command: /lib/systemd/systemd
  56. provision_command:
  57. - DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
  58. - name: debian
  59. driver_config:
  60. run_command: /lib/systemd/systemd
  61. provision_command:
  62. - DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
  63. <% end %>
  64. <% if File.exists?('suites.yml') %>
  65. <%= File.read('suites.yml') %>
  66. <% else %>
  67. suites:
  68. - name: salt
  69. <% end %>
  70. <% if File.exists?('verifier.yml') %>
  71. <%= File.read('verifier.yml') %>
  72. <% else %>
  73. verifier:
  74. name: shell
  75. remote_exec: false
  76. <% if ENV['TESTS_JUNIT_XML_PATH'].nil? %>
  77. command: pytest -v tests/$KITCHEN_SUITE
  78. <% else %>
  79. command: pytest --junit-xml <%= ENV['TESTS_JUNIT_XML_PATH'] %> -v tests/$KITCHEN_SUITE
  80. <% end %>
  81. <% end %>