Add kitchen/travis tests
This commit is contained in:
parent
77a7cbf228
commit
9e4ad5566e
38
.kitchen.yml
38
.kitchen.yml
@ -1,23 +1,20 @@
|
||||
---
|
||||
driver:
|
||||
name: vagrant
|
||||
name: docker
|
||||
use_sudo: false
|
||||
privileged: true
|
||||
require_chef_omnibus: false
|
||||
|
||||
platforms:
|
||||
- name: debian-jessie64
|
||||
driver_config:
|
||||
box: ssplatt/salt-deb-8
|
||||
- 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:
|
||||
name: salt_solo
|
||||
salt_version: 2015.8.8
|
||||
formula: apache
|
||||
require_chef: false
|
||||
data_path: test/shared
|
||||
is_file_root: true
|
||||
pillars:
|
||||
top.sls:
|
||||
base:
|
||||
@ -25,6 +22,7 @@ provisioner:
|
||||
- apache
|
||||
apache.sls:
|
||||
apache:
|
||||
manage_service_states: False
|
||||
mod_security:
|
||||
crs_install: True
|
||||
manage_config: True
|
||||
@ -39,16 +37,20 @@ provisioner:
|
||||
sec_debug_log_level: '3'
|
||||
|
||||
suites:
|
||||
- name: apache
|
||||
provisioner:
|
||||
state_top:
|
||||
base:
|
||||
'*':
|
||||
- apache
|
||||
- name: mod_security
|
||||
- name: default
|
||||
provisioner:
|
||||
state_top:
|
||||
base:
|
||||
'*':
|
||||
- apache
|
||||
- apache.mod_security
|
||||
- name: apache_norestart
|
||||
provisioner:
|
||||
state_top:
|
||||
base:
|
||||
'*':
|
||||
- apache
|
||||
pillars:
|
||||
apache.sls:
|
||||
apache:
|
||||
manage_service_states: False
|
||||
|
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@ -0,0 +1,16 @@
|
||||
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}
|
Loading…
Reference in New Issue
Block a user