blob: 1f25671b7342ad4acdadbaf4d58a28669f624880 [file] [log] [blame]
---
driver:
name: docker
hostname: linux-formula
run_options: -v /dev/log:/dev/log:ro
provisioner:
name: salt_solo
salt_install: bootstrap
salt_bootstrap_url: https://bootstrap.saltstack.com
salt_version: latest
require_chef: false
log_level: error
formula: linux
dependencies:
- name: salt
repo: git
source: http://gerrit.mcp.mirantis.com/salt-formulas/salt
branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
grains:
noservices: true
state_top:
base:
"*":
- linux
pillars:
top.sls:
base:
"*":
- linux
verifier:
name: inspec
sudo: true
docker_images:
- &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19'%>
- &xenial-stable <%=ENV['IMAGE_XENIAL_STABLE'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%>
platforms:
- name: xenial-2017.7
driver_config:
image: *xenial-20177
platform: ubuntu
- name: xenial-stable
driver_config:
image: *xenial-stable
platform: ubuntu
suites:
- name: network
provisioner:
pillars-from-files:
linux.sls: tests/pillar/network.sls
#- name: storage
#provisioner:
#pillars-from-files:
#linux.sls: tests/pillar/storage.sls
#init_environment: |
#sudo mkdir -p /tmp/node
#sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
#sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
#sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
#sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
#sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
#sudo mkfs.ext4 /tmp/loop_dev1
#sudo mkswap /tmp/loop_dev2
#sudo chown root /tmp/loop_dev*;
#sudo chmod 0600 /tmp/loop_dev*;
- name: system
provisioner:
pillars-from-files:
linux.sls: tests/pillar/system.sls
- name: duo
provisioner:
pillars-from-files:
linux.sls: tests/pillar/system_duo.sls
# vim: ft=yaml sw=2 ts=2 sts=2 tw=125