Skip to content

Instantly share code, notes, and snippets.

@axl89
Created March 21, 2021 13:27
Show Gist options
  • Save axl89/a03029cb4639fab81d7542565da3501c to your computer and use it in GitHub Desktop.
Save axl89/a03029cb4639fab81d7542565da3501c to your computer and use it in GitHub Desktop.
Kitchen YAML file used
---
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
chef_version: <%= ENV['CHEF_VERSION'] || '16' %>
env: [CHEF_LICENSE=accept]
provisioner:
name: dokken
deprecations_as_errors: true
transport:
name: dokken
verifier:
name: inspec
platforms:
# @see https://github.com/chef-cookbooks/testing_examples/blob/master/kitchen.dokken.yml
# @see https://hub.docker.com/u/dokken
- name: ubuntu-18.04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
- name: ubuntu-20.04
driver:
image: dokken/ubuntu-20.04
pid_one_command: /bin/systemd
- name: amazonlinux-2
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
- name: centos-7
driver:
image: dokken/centos-7
pid_one_command: /usr/lib/systemd/systemd
- name: centos-8
driver:
image: dokken/centos-8
pid_one_command: /usr/lib/systemd/systemd
suites:
- name: default
run_list:
- recipe[test_cookbook::default]
verifier:
inspec_tests:
- test/integration/default
attributes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment