-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkitchen.yml
80 lines (72 loc) · 2.03 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
---
driver:
name: dokken
privileged: true # allows systemd services to start
docker_registry: docker.io
chef_image: boxcutter/cinc
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
provisioner:
name: dokken
product_name: cinc
chef_binary: /opt/cinc/bin/cinc-client
chef_license: accept-no-persist
chef_log_level: <%= ENV['CHEF_LOG_LEVEL'] || 'auto' %>
client_rb:
file_staging_uses_destdir: false
client_fork: false
force_logger: true
log_location: /var/log/chef.log
ohai.optional_plugins:
- Passwd
ohai.critical_plugins:
- Passwd
transport:
name: dokken
lifecycle:
post_create:
- remote: |
bash -c -x '
# Force firstboot
touch /root/firstboot_os
'
platforms:
# @see https://github.com/chef-cookbooks/testing_examples/blob/main/kitchen.dokken.yml
# @see https://hub.docker.com/u/dokken
- name: ubuntu-20.04
driver:
image: boxcutter/dokken-ubuntu-20.04
pid_one_command: /bin/systemd
- name: ubuntu-22.04
driver:
image: boxcutter/dokken-ubuntu-22.04
pid_one_command: /bin/systemd
- name: ubuntu-24.04
driver:
image: boxcutter/dokken-ubuntu-24.04
pid_one_command: /bin/systemd
- name: centos-stream-9
driver:
image: boxcutter/dokken-centos-stream-9
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
# stub out /etc/fstab for fb_fstab
- RUN touch /etc/fstab
# enable EPEL (for stuff like hddtemp)
- RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
suites:
- name: default
# run_list set in Policyfile.rb, this does nothing
# run_list:
# - recipe[boxcutter_ohai]
# - recipe[boxcutter_init::default]
# - recipe[tier_minimal]
verifier:
inspec_tests:
- test/integration/default
attributes:
lifecycle:
pre_converge:
- remote: |
bash -xc '
echo "{\"tier\":\"minimal\"}" > /etc/boxcutter-config.json
'