forked from TimMurphy123/formula-letsencrypt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.kitchen.yml
76 lines (67 loc) · 1.63 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
<%
require 'yaml'
formula = YAML.load_file('metadata.yml')
formula_name = formula['name']
%>
---
# For help on this file's format, see https://kitchen.ci/
driver:
name: docker
use_sudo: false
privileged: true
run_command: /lib/systemd/systemd
provisioner:
name: salt_solo
salt_bootstrap_url: https://bootstrap.saltstack.com
salt_install: bootstrap
salt_bootstrap_options: -x python3 git v2019.2.5
salt_version: '2019.2.5'
require_chef: false
pillars:
top.sls:
base:
'*':
- <%= formula_name %>
log_level: <%= ENV['SALT_DEBUG_LEVEL'] || 'debug' %>
formula: <%= formula_name %>
state_top:
base:
'*':
- <%= formula_name %>
platforms:
- name: freebsd-11.4
driver:
name: vagrant
box: bento/freebsd-11.4
customize:
memory: 1024
#use_sudo: true
hostname: letsencrypt.ci.local
cache_directory: false
- name: ubuntu-1804-2019-2-py3
driver:
image: netmanagers/salt-2019.2-py3:ubuntu-18.04
provision_command:
- apt-get update && apt-get install -y cron
verifier:
# https://www.inspec.io/
name: inspec
sudo: true
# cli, documentation, html, progress, json, json-min, json-rspec, junit
reporter:
- cli
suites:
- name: default
provisioner:
pillars_from_files:
<%= formula_name %>.sls: pillar.example/test.sls
verifier:
inspec_tests:
- path: test/integration/default
- name: native-packages
provisioner:
pillars_from_files:
<%= formula_name %>.sls: pillar.example/native.sls
verifier:
inspec_tests:
- path: test/integration/native