mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
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: https://pypi.c7.saltstack.net/simple
|
|
pip_extra_index_url:
|
|
- https://pypi.python.org/simple
|
|
require_chef: false
|
|
formula: states
|
|
log_level: debug
|
|
<% 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
|
|
- name: debian
|
|
driver_config:
|
|
run_command: /lib/systemd/systemd
|
|
provision_command:
|
|
- DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev gcc git
|
|
<% 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
|
|
command: pytest -v tests/integration/$KITCHEN_SUITE
|
|
<% end %>
|