From e9fd67204eb5decb619bea9ca2b174b0dc50a989 Mon Sep 17 00:00:00 2001 From: Artem Sidorenko Date: Sat, 21 Oct 2017 21:26:27 +0200 Subject: [PATCH] Using the same names for platforms for different drivers This allows easy usage and testing of different suites locally and in the CI (DO) Also updating Fedora platforms. Fedora 24 is EOL. Signed-off-by: Artem Sidorenko --- .kitchen.do.local.yml | 32 +++++++++++++++++++++++-------- .kitchen.yml | 44 ++++++++++++++++++++++++++++++++----------- .travis.yml | 2 +- 3 files changed, 58 insertions(+), 20 deletions(-) diff --git a/.kitchen.do.local.yml b/.kitchen.do.local.yml index 30f8f4f8..f8bab4e4 100644 --- a/.kitchen.do.local.yml +++ b/.kitchen.do.local.yml @@ -11,11 +11,27 @@ transport: max_wait_until_ready: 30 platforms: -- name: ubuntu-14-04-x64 -- name: ubuntu-16-04-x64 -- name: centos-6-x64 -- name: centos-7-x64 -- name: debian-7-x64 -- name: debian-8-x64 -- name: fedora-24-x64 -- name: fedora-25-x64 +- name: ubuntu-14-04 + driver_config: + image: ubuntu-14-04-x64 +- name: ubuntu-16-04 + driver_config: + image: ubuntu-16-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: fedora-25 + driver_config: + image: fedora-25 +- name: fedora-26 + driver_config: + image: fedora-26 diff --git a/.kitchen.yml b/.kitchen.yml index 1c5ef4e7..02cff6af 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -4,17 +4,39 @@ driver: name: vagrant platforms: -- name: ubuntu-14.04 -- name: ubuntu-16.04 -- name: centos-6.9 -- name: centos-7.4 -- name: oracle-6.9 -- name: oracle-7.3 -- name: debian-7.11 -- name: debian-8.6 -- name: fedora-24 +- name: ubuntu-14-04 + driver_config: + box: bento/ubuntu-14.04 +- name: ubuntu-16-04 + driver_config: + box: bento/ubuntu-16.04 +- name: centos-6 + driver_config: + box: bento/centos-6.9 +- 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: fedora-25 -- name: opensuse-leap-42.1 + driver_config: + box: bento/fedora-25 +- name: fedora-26 + driver_config: + box: bento/fedora-26 +- name: opensuse-leap-42 + driver_config: + box: bento/opensuse-leap-42.1 provisioner: name: chef_solo @@ -46,7 +68,7 @@ suites: run_list: - recipe[os-hardening::default] includes: - - centos-7.3 + - centos-7 attributes: os-hardening: security: diff --git a/.travis.yml b/.travis.yml index 2b5d9f17..9d712385 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,8 +19,8 @@ env: - INSTANCE=centos-7 CHEF_VERSION=12.5.1 - INSTANCE=debian-7 - INSTANCE=debian-8 - - INSTANCE=fedora-24 - INSTANCE=fedora-25 + - INSTANCE=fedora-26 script: - bundle exec rake prepare_do_env kitchen KITCHEN_LOCAL_YAML=.kitchen.do.local.yml