blob: eb4ed8881f721927bc422852a0ffbe08115fe0bb [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
azvyagintseva3a73d02018-12-06 14:49:58 +020015 dependencies:
16 - name: salt
17 repo: git
18 source: http://gerrit.mcp.mirantis.com/salt-formulas/salt
Petr Michalec35277532017-02-28 23:16:58 +010019 grains:
20 noservices: true
21 state_top:
22 base:
23 "*":
24 - linux
25 pillars:
26 top.sls:
27 base:
28 "*":
29 - linux
30
31verifier:
32 name: inspec
33 sudo: true
34
35platforms:
Jakub Josef495245a2018-03-05 15:41:01 +010036 - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
Petr Michalec35277532017-02-28 23:16:58 +010037 driver_config:
Martin Polreichb47417b2018-11-20 15:08:58 +010038 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 +010039 platform: ubuntu
40
41
42suites:
43
44 - name: network
45 provisioner:
46 pillars-from-files:
47 linux.sls: tests/pillar/network.sls
48
49 #- name: storage
50 #provisioner:
51 #pillars-from-files:
52 #linux.sls: tests/pillar/storage.sls
53 #init_environment: |
54 #sudo mkdir -p /tmp/node
55 #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
56 #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
57 #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
58 #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
59 #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
60 #sudo mkfs.ext4 /tmp/loop_dev1
61 #sudo mkswap /tmp/loop_dev2
62 #sudo chown root /tmp/loop_dev*;
63 #sudo chmod 0600 /tmp/loop_dev*;
64
65 - name: system
66 provisioner:
67 pillars-from-files:
68 linux.sls: tests/pillar/system.sls
69
Gabor Orosz35815c02018-09-07 17:31:05 +020070 - name: system_file
71 provisioner:
72 pillars-from-files:
73 linux.sls: tests/pillar/system_file.sls
74 pillars_from_directories:
75 - source: tests/example
76 dest: srv/salt/linux/files/test
77
Gleb Galkin93b9ae92018-10-18 13:57:30 +030078 - name: duo
79 provisioner:
80 pillars-from-files:
81 linux.sls: tests/pillar/system_duo.sls
82
Petr Michalec35277532017-02-28 23:16:58 +010083# vim: ft=yaml sw=2 ts=2 sts=2 tw=125