Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kitchen config for more platforms #213

Merged
merged 9 commits into from
Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .kitchen.do.yml
Original file line number Diff line number Diff line change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tas50 can you please add debian-9 here? image is debian-9-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
Original file line number Diff line number Diff line change
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' %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1


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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tas50 can you please add debian-9 here?

- 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
Original file line number Diff line number Diff line change
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