2017-10-11 16:20:14 +00:00
|
|
|
driver:
|
|
|
|
name: docker
|
|
|
|
use_sudo: false
|
|
|
|
privileged: true
|
|
|
|
<% if File.exists?('driver.yml') %>
|
|
|
|
<% File.read('driver.yml').split(/\n/).each do |line| %>
|
|
|
|
<%= line %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: salt_solo
|
|
|
|
salt_install: pip
|
|
|
|
pip_pkg: <%= ENV['SALT_SDIST_PATH'] || 'salt' %>
|
2017-10-12 02:40:44 +00:00
|
|
|
pip_index_url: https://pypi.c7.saltstack.net/simple
|
|
|
|
pip_extra_index_url:
|
|
|
|
- https://pypi.python.org/simple
|
2017-10-11 16:20:14 +00:00
|
|
|
require_chef: false
|
|
|
|
formula: states
|
2017-10-12 02:40:44 +00:00
|
|
|
<% if File.exists?('provisioner.yml') %>
|
|
|
|
<% File.read('provisioner.yml').split(/\n/).each do |line| %>
|
2017-10-11 16:20:14 +00:00
|
|
|
<%= line %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if File.exists?('state_top.yml') %>
|
|
|
|
<% File.read('state_top.yml').split(/\n/).each do |line| %>
|
|
|
|
<%= line %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
state_top:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- states
|
|
|
|
<% end %>
|
|
|
|
<% if File.exists?('pillars.yml') %>
|
|
|
|
<% File.read('pillars.yml').split(/\n/).each do |line| %>
|
|
|
|
<%= line %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if File.exists?('platforms.yml') %>
|
|
|
|
<%= File.read('platforms.yml') %>
|
|
|
|
<% else %>
|
|
|
|
platforms:
|
|
|
|
- name: centos
|
|
|
|
driver_config:
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provision_command:
|
|
|
|
- yum install -y epel-release
|
|
|
|
- yum install -y python-pip python-devel gcc git gcc-c++
|
|
|
|
- name: opensuse
|
|
|
|
driver_config:
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provision_command:
|
|
|
|
- systemctl enable sshd.service
|
2017-10-12 02:40:44 +00:00
|
|
|
- zypper install -y python-pip python-devel gcc git gcc-c++
|
2017-10-11 16:20:14 +00:00
|
|
|
- name: ubuntu
|
|
|
|
driver_config:
|
|
|
|
run_command: /lib/systemd/systemd
|
2017-10-12 02:40:44 +00:00
|
|
|
provision_command:
|
2017-10-12 03:45:09 +00:00
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
|
2017-10-11 16:20:14 +00:00
|
|
|
- name: debian
|
|
|
|
driver_config:
|
|
|
|
run_command: /lib/systemd/systemd
|
2017-10-12 02:40:44 +00:00
|
|
|
provision_command:
|
2017-10-12 03:45:09 +00:00
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
|
2017-10-11 16:20:14 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if File.exists?('suites.yml') %>
|
|
|
|
<%= File.read('suites.yml') %>
|
|
|
|
<% else %>
|
|
|
|
suites:
|
|
|
|
- name: salt
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if File.exists?('verifier.yml') %>
|
|
|
|
<%= File.read('verifier.yml') %>
|
|
|
|
<% else %>
|
|
|
|
verifier:
|
|
|
|
name: shell
|
|
|
|
remote_exec: false
|
2017-10-12 16:23:40 +00:00
|
|
|
<% if ENV['TESTS_JUNIT_XML_PATH'].nil? %>
|
2017-10-12 19:59:45 +00:00
|
|
|
command: pytest -v tests/$KITCHEN_SUITE
|
2017-10-12 04:30:42 +00:00
|
|
|
<% else %>
|
2017-10-12 19:59:45 +00:00
|
|
|
command: pytest --junit-xml <%= ENV['TESTS_JUNIT_XML_PATH'] %> -v tests/$KITCHEN_SUITE
|
2017-10-12 04:30:42 +00:00
|
|
|
<% end %>
|
2017-10-11 16:20:14 +00:00
|
|
|
<% end %>
|