Explorar el Código

test(kitchen): Add "kitchen-dokken"

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO hace 2 años
padre
commit
f9dea42cb0
Se han modificado 2 ficheros con 52 adiciones y 0 borrados
  1. 2 0
      Gemfile
  2. 50 0
      kitchen.yml

+ 2 - 0
Gemfile

@@ -5,3 +5,5 @@ gem 'chef-cli'
 gem 'chef-bin'
 gem 'cookstyle'
 gem 'pry'
+gem 'kitchen-dokken'
+gem 'kitchen-inspec'

+ 50 - 0
kitchen.yml

@@ -0,0 +1,50 @@
+---
+driver:
+  name: dokken
+  privileged: true  # because Docker and SystemD
+
+transport:
+  name: dokken
+
+provisioner:
+  name: dokken
+  chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
+  chef_license: accept-no-persist
+  product_name: chef
+  enforce_idempotency: true
+  multiple_converge: 2
+  deprecations_as_errors: false
+
+platforms:
+  - name: debian-11
+    driver:
+      image: dokken/debian-11
+      pid_one_command: /bin/systemd
+      intermediate_instructions:
+        - RUN /usr/bin/apt-get update
+
+  - name: centos-8
+    driver:
+      image: dokken/centos-8
+      pid_one_command: /usr/lib/systemd/systemd
+
+  - name: ubuntu-20.04
+    driver:
+      image: dokken/ubuntu-20.04
+      pid_one_command: /bin/systemd
+      intermediate_instructions:
+        - RUN /usr/bin/apt-get update
+
+verifier:
+  name: inspec
+
+suites:
+  - name: workstation
+    run_list:
+      - 'workstation::default'
+    lifecycle:
+      pre_create:
+        - podman create --name chef-latest --replace docker.io/chef/chef:latest sh
+        - podman start chef-latest
+      post_destroy:
+        - podman volume prune -f