-
Notifications
You must be signed in to change notification settings - Fork 107
/
.kitchen.yml
79 lines (68 loc) · 1.93 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
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
grains:
noservices: true
state_top:
base:
"*":
- linux
pillars:
top.sls:
base:
"*":
- linux
verifier:
name: inspec
sudo: true
platforms:
- name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
driver_config:
image: <%=ENV['PLATFORM'] || 'epcim/salt:saltstack-ubuntu-xenial-salt-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: system_file
provisioner:
pillars-from-files:
linux.sls: tests/pillar/system_file.sls
pillars_from_directories:
- source: tests/example
dest: srv/salt/linux/files/test
- name: duo
provisioner:
pillars-from-files:
linux.sls: tests/pillar/system_duo.sls
# vim: ft=yaml sw=2 ts=2 sts=2 tw=125