This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.kitchen.docker.custom-environment.yml
68 lines (63 loc) · 1.77 KB
/
.kitchen.docker.custom-environment.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
---
# this is still very early - it seems to be significanly slower then `docken`
# and yet seems to fail connecting using SSH when we start systemd
# currently this is not working but it is WIP
#
# The aim of this file is to test the Tinc cookbook using a Chef environment
# or Chef Policy group.
# This means all the suites, running from this file, are running with
# the `chef_environment` being "kitchen" (while with the other kitchen files
# `chef_environment` is "_default")
driver:
cap_add:
- SYS_ADMIN
disable_upstart: false
hostname: tincvpn3
name: docker
privileged: yes
provision_command:
- apt-get install systemd -y
run_command: /bin/systemd
socket: unix:///var/run/docker.sock
provisioner:
always_update_cookbooks: true
chef_license: accept
client_rb:
environment: kitchen
environments_path: test/fixtures/environments
log_level: warn # debug, info, warn, error, and fatal
name: chef_zero
nodes_path: test/fixtures/kitchen_env_nodes
verifier:
name: inspec
platforms:
- name: debian-9
driver_config:
image: debian:stretch
- name: debian-10
driver_config:
image: debian:buster
suites:
- name: two-env-with-different-config
attributes:
# The expected config to be applied
kitchen:
tincvpn:
networks:
infravpn:
network:
iprange: 10.0.0.0/24
mode: switch
# Another config that should not be applied at all
the_other_env:
tincvpn:
networks:
infravpn:
network:
iprange: 10.0.1.0/24
mode: switch
run_list:
- recipe[tincvpn::default]
verifier:
inspec_tests:
- test/integration/custom_environments/two_env_with_different_config