Skip to content

Commit

Permalink
Update kitchen config for more platforms (#213)
Browse files Browse the repository at this point in the history
* Remove Debian 9 testing

It's EOL

Signed-off-by: Tim Smith <tsmith@chef.io>

* Require a modern test-kitchen

Signed-off-by: Tim Smith <tsmith@chef.io>

* Simplify the chef_version config in dokken
Signed-off-by: Tim Smith <tsmith@chef.io>

Signed-off-by: Tim Smith <tsmith@chef.io>

* Use the bento slugs in Kitchen vagrant + add new platforms

Add Ubuntu 18.04 / Debian 9

We push bento images named after the major release now that get updated for all the minors. No need to update the config all the time with the new box names

Signed-off-by: Tim Smith <tsmith@chef.io>

* Use dokken images for kitchen-dokken + add new platforms

Add Ubuntu 18.04 / Debian 9
Use the dokken images that already have packages like procps in them
Order the platforms alphabetically

Signed-off-by: Tim Smith <tsmith@chef.io>

* Test Ubuntu 18.04 / Debian 9 in Travis

Signed-off-by: Tim Smith <tsmith@chef.io>

* Add Debian 9 / Ubuntu 18.04 for Digital Ocean

Signed-off-by: Tim Smith <tsmith@chef.io>

* Allow failures on Ubuntu 18.04

till we resolved all problems

Signed-off-by: Artem Sidorenko <artem@posteo.de>

* Temporary allow Amazon Linux 2 to fail

inspec/train#312

Signed-off-by: Artem Sidorenko <artem@posteo.de>
  • Loading branch information
tas50 authored and chris-rock committed Jun 27, 2018
1 parent b787f84 commit aa9202b
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 55 deletions.
9 changes: 6 additions & 3 deletions .kitchen.do.yml
Expand Up @@ -17,18 +17,21 @@ platforms:
- name: ubuntu-16-04
driver_config:
image: ubuntu-16-04-x64
- name: ubuntu-18-04
driver_config:
image: ubuntu-18-04-x64
- name: centos-6
driver_config:
image: centos-6-x64
- name: centos-7
driver_config:
image: centos-7-x64
- name: debian-7
driver_config:
image: debian-7-x64
- name: debian-8
driver_config:
image: debian-8-x64
- name: debian-9
driver_config:
image: debian-9-x64
- name: fedora-26
driver_config:
image: fedora-26-x64
Expand Down
63 changes: 34 additions & 29 deletions .kitchen.dokken.yml
Expand Up @@ -4,9 +4,7 @@
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
<% if ENV['CHEF_VERSION'] %>
chef_version: <%= ENV['CHEF_VERSION'] %>
<% end %>
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>

transport:
name: dokken
Expand All @@ -19,23 +17,21 @@ verifier:
sudo: true

platforms:
- name: ubuntu-14-04
- name: amazonlinux-1
driver:
image: ubuntu:14.04
- name: ubuntu-16-04
image: dokken/amazonlinux
pid_one_command: /sbin/init
- name: amazonlinux-2
driver:
image: ubuntu:16.04
intermediate_instructions:
- RUN /usr/bin/apt-get update
pid_one_command: /bin/systemd
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
- name: centos-6
driver:
image: centos:6
intermediate_instructions:
- RUN yum install -y initscripts
image: dokken/centos-6
pid_one_command: /sbin/init
- name: centos-7
driver:
image: centos:7
image: dokken/centos-7
pid_one_command: /usr/lib/systemd/systemd
- name: oracle-6
driver:
Expand All @@ -44,40 +40,49 @@ platforms:
driver:
image: oraclelinux:7
pid_one_command: /usr/lib/systemd/systemd
- name: debian-7
- name: debian-8
driver:
image: debian:7
image: dokken/debian-8
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y procps
- name: debian-8
pid_one_command: /bin/systemd
- name: debian-9
driver:
image: debian:8
image: dokken/debian-9
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y procps
pid_one_command: /bin/systemd
- name: fedora-26
driver:
image: fedora:26
image: dokken/fedora-26
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf install -y yum
- name: fedora-27
driver:
image: fedora:27
image: dokken/fedora-27
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf install -y yum
- name: opensuse-42
driver:
image: opensuse:leap
pid_one_command: /usr/lib/systemd/systemd
- name: amazonlinux-1
image: dokken/opensuse-leap
pid_one_command: /bin/systemd
- name: ubuntu-14-04
driver:
image: dokken/amazonlinux
image: dokken/ubuntu-14.04
pid_one_command: /sbin/init
- name: amazonlinux-2
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: ubuntu-16-04
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
image: dokken/ubuntu-16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: ubuntu-18-04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
24 changes: 4 additions & 20 deletions .kitchen.yml
@@ -1,5 +1,4 @@
---

driver:
name: vagrant

Expand All @@ -10,33 +9,18 @@ platforms:
- name: ubuntu-16-04
driver_config:
box: bento/ubuntu-16.04
- name: centos-6
- name: ubuntu-18-04
driver_config:
box: bento/centos-6.9
box: bento/ubuntu-18.04
- name: centos-6
- name: centos-7
driver_config:
box: bento/centos-7.4
- name: oracle-6
driver_config:
box: bento/oracle-6.9
- name: oracle-7
driver_config:
box: bento/oracle-7.3
- name: debian-7
driver_config:
box: bento/debian-7.11
- name: debian-8
driver_config:
box: bento/debian-8.6
- name: debian-9
- name: fedora-26
driver_config:
box: bento/fedora-26
- name: fedora-27
driver_config:
box: bento/fedora-27
- name: opensuse-leap-42
driver_config:
box: bento/opensuse-leap-42.1
- name: amazonlinux-1
driver_config:
box: realreadme/amazon2016.09
Expand Down
9 changes: 7 additions & 2 deletions .travis.yml
Expand Up @@ -17,23 +17,25 @@ env:
- INSTANCE=ubuntu-14-04 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=ubuntu-16-04 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=ubuntu-16-04 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=ubuntu-18-04 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=centos-6 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=centos-7 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=centos-7 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=debian-7 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=debian-8 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=debian-9 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=fedora-26 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=fedora-27 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- INSTANCE=ubuntu-14-04 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=ubuntu-16-04 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=ubuntu-18-04 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=ubuntu-16-04 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=centos-6 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=centos-7 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=centos-7 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=oracle-6 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=oracle-7 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=debian-7 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=debian-8 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=debian-9 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=fedora-26 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=fedora-27 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- INSTANCE=opensuse-42 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
Expand All @@ -47,9 +49,12 @@ matrix:
allow_failures: # temporaray disable failing tests until all problems are fixed
- env: INSTANCE=ubuntu-16-04 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=ubuntu-16-04 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=ubuntu-18-04 KITCHEN_LOCAL_YAML=.kitchen.do.yml
- env: INSTANCE=ubuntu-18-04 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=centos-7 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=centos-7 CHEF_VERSION=12.14.60 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=opensuse-42 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
- env: INSTANCE=amazonlinux-2 KITCHEN_LOCAL_YAML=.kitchen.dokken.yml # https://github.com/inspec/train/pull/312
include:
- env: UNIT_AND_LINT=1
script:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -26,7 +26,7 @@ group :integration do
gem 'kitchen-dokken'
gem 'kitchen-inspec', '>= 0.23.1'
gem 'kitchen-vagrant'
gem 'test-kitchen', '~> 1.0'
gem 'test-kitchen', '~> 1.20'
end

group :tools do
Expand Down

0 comments on commit aa9202b

Please sign in to comment.