blob: 4df2b13b7b7bf32b3213abfcd6ddf0798f43a124 [file] [log] [blame]
Petr Michalec35277532017-02-28 23:16:58 +01001---
2driver:
3 name: docker
azvyagintsevb7c2ef42018-08-16 14:21:39 +03004 hostname: linux-formula
5 run_options: -v /dev/log:/dev/log:ro
Petr Michalec35277532017-02-28 23:16:58 +01006
7provisioner:
8 name: salt_solo
9 salt_install: bootstrap
10 salt_bootstrap_url: https://bootstrap.saltstack.com
11 salt_version: latest
12 require_chef: false
13 log_level: error
14 formula: linux
15 grains:
16 noservices: true
17 state_top:
18 base:
19 "*":
20 - linux
21 pillars:
22 top.sls:
23 base:
24 "*":
25 - linux
26
27verifier:
28 name: inspec
29 sudo: true
30
31platforms:
Jakub Josef495245a2018-03-05 15:41:01 +010032 - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
Petr Michalec35277532017-02-28 23:16:58 +010033 driver_config:
Martin Polreichb47417b2018-11-20 15:08:58 +010034 image: <%=ENV['PLATFORM'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%>
Petr Michalec35277532017-02-28 23:16:58 +010035 platform: ubuntu
36
37
38suites:
39
40 - name: network
41 provisioner:
42 pillars-from-files:
43 linux.sls: tests/pillar/network.sls
44
45 #- name: storage
46 #provisioner:
47 #pillars-from-files:
48 #linux.sls: tests/pillar/storage.sls
49 #init_environment: |
50 #sudo mkdir -p /tmp/node
51 #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
52 #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
53 #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
54 #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
55 #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
56 #sudo mkfs.ext4 /tmp/loop_dev1
57 #sudo mkswap /tmp/loop_dev2
58 #sudo chown root /tmp/loop_dev*;
59 #sudo chmod 0600 /tmp/loop_dev*;
60
61 - name: system
62 provisioner:
63 pillars-from-files:
64 linux.sls: tests/pillar/system.sls
65
Gabor Orosz35815c02018-09-07 17:31:05 +020066 - name: system_file
67 provisioner:
68 pillars-from-files:
69 linux.sls: tests/pillar/system_file.sls
70 pillars_from_directories:
71 - source: tests/example
72 dest: srv/salt/linux/files/test
73
Gleb Galkin93b9ae92018-10-18 13:57:30 +030074 - name: duo
75 provisioner:
76 pillars-from-files:
77 linux.sls: tests/pillar/system_duo.sls
78
Petr Michalec35277532017-02-28 23:16:58 +010079# vim: ft=yaml sw=2 ts=2 sts=2 tw=125