forked from yotamloe/bindplane-op
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.kitchen.yml
84 lines (79 loc) · 1.86 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
80
81
82
83
84
# Usage
# - Set `PROJECT` in your environment, to the project_id you wish to deploy test instances to.
# - Run `make kitchen-rep`
# - Run `make kitchen`
# - Run `make kitchen-clean
---
driver:
name: gce
metadata:
# adds username prefix to the ssh key, required by
# gce metadata.
ssh-keys: <%= ENV['USER'] + ':' + IO.binread("#{Dir.home}/.ssh/id_rsa.pub").rstrip! %>
project: <%= ENV['PROJECT'] %>
region: us-east1
machine_type: e2-small
preemptible: true
disks:
disk0:
boot: true
autodelete_disk: true
disk_size: 50
disk_type: pd-ssd
transport:
username: <%= ENV['USER'] %>
ssh_key: ~/.ssh/id_rsa
provisioner:
name: shell
script: 'test/inspec/package/provision.sh'
root_path: '/tmp'
# copies repo to instance
data_path: "dist/kitchen/"
verifier:
name: inspec
platforms:
- name: centos-7
driver:
image_project: centos-cloud
image_family: centos-7
- name: rocky-8 # centos 8
driver:
image_project: rocky-linux-cloud
image_family: rocky-linux-8
- name: rhel-7
driver:
image_project: rhel-cloud
image_family: rhel-7
- name: rhel-8
driver:
image_project: rhel-cloud
image_family: rhel-8
- name: ubuntu-18
driver:
image_project: ubuntu-os-cloud
image_family: ubuntu-1804-lts
- name: ubuntu-20
driver:
image_project: ubuntu-os-cloud
image_family: ubuntu-2004-lts
- name: debian-10
driver:
image_project: debian-cloud
image_family: debian-10
- name: debian-11
driver:
image_project: debian-cloud
image_family: debian-11
- name: sles-12
driver:
image_project: suse-cloud
image_family: sles-12
- name: sles-15
driver:
image_project: suse-cloud
image_family: sles-15
suites:
- name: default
verifier:
inspec_tests:
- test/inspec/package/