12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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' %>
- pip_index_url: <%= ENV['SALT_INDEX_URL'] || 'https://pypi.python.org/simple' %>
- require_chef: false
- formula: states
- <% if File.exists?('provisioner.yml') %>
- <% File.read('provisioner.yml').split(/\n/).each do |line| %>
- <%= 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
- - zypper install -y python-pip python-devel gcc git gcc-c++
- - name: ubuntu
- driver_config:
- run_command: /lib/systemd/systemd
- provision_command:
- - DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
- - name: debian
- driver_config:
- run_command: /lib/systemd/systemd
- provision_command:
- - DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git locales console-data
- <% 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
- <% if ENV['TESTS_JUNIT_XML_PATH'].nil? %>
- command: pytest -v tests/$KITCHEN_SUITE
- <% else %>
- command: pytest --junit-xml <%= ENV['TESTS_JUNIT_XML_PATH'] %> -v tests/$KITCHEN_SUITE
- <% end %>
- <% end %>
|