Browse Source

Add kitchen/travis tests

master
Noel McLoughin 7 years ago
parent
commit
9e4ad5566e
3 changed files with 38 additions and 14 deletions
  1. +16
    -14
      .kitchen.yml
  2. +16
    -0
      .travis.yml
  3. +6
    -0
      Gemfile

+ 16
- 14
.kitchen.yml View File

--- ---
driver: driver:
name: vagrant
name: docker
use_sudo: false
privileged: true
require_chef_omnibus: false


platforms: platforms:
- name: debian-jessie64
driver_config:
box: ssplatt/salt-deb-8
- name: centos-7 - name: centos-7
driver_config:
box: rchrd/centos-7-x64-salt
- name: centos-6
driver_config:
box: rchrd/centos-6-x64-salt
- name: ubuntu-16.04
- name: debian-9


provisioner: provisioner:
name: salt_solo name: salt_solo
salt_version: 2015.8.8
formula: apache
require_chef: false
data_path: test/shared data_path: test/shared
is_file_root: true
pillars: pillars:
top.sls: top.sls:
base: base:
- apache - apache
apache.sls: apache.sls:
apache: apache:
manage_service_states: False
mod_security: mod_security:
crs_install: True crs_install: True
manage_config: True manage_config: True
sec_debug_log_level: '3' sec_debug_log_level: '3'


suites: suites:
- name: apache
- name: default
provisioner: provisioner:
state_top: state_top:
base: base:
'*': '*':
- apache - apache
- name: mod_security
- apache.mod_security
- name: apache_norestart
provisioner: provisioner:
state_top: state_top:
base: base:
'*': '*':
- apache - apache
- apache.mod_security
pillars:
apache.sls:
apache:
manage_service_states: False

+ 16
- 0
.travis.yml View File

sudo: required
language: python
services:
- docker

before_install:
- bundle install

env:
matrix:
- INSTANCE: default-centos-7
- INSTANCE: default-ubuntu-1604
- INSTANCE: default-debian-9

script:
- bundle exec kitchen verify ${INSTANCE}

+ 6
- 0
Gemfile View File

source "https://rubygems.org"

gem "test-kitchen", '>=1.2.1'
gem "kitchen-docker"
gem "kitchen-salt", ">=0.0.11"
gem "kitchen-inspec"

Loading…
Cancel
Save