2019-03-05 20:12:25 -03:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
|
|
|
# For help on this file's format, see https://kitchen.ci/
|
|
|
|
driver:
|
|
|
|
name: docker
|
|
|
|
|
|
|
|
driver_config:
|
|
|
|
use_sudo: false
|
|
|
|
privileged: true
|
|
|
|
provision_command: mkdir -p /run/sshd
|
|
|
|
|
|
|
|
# Make sure the platforms listed below match up with
|
|
|
|
# the `env.matrix` instances defined in `.travis.yml`
|
|
|
|
platforms:
|
|
|
|
# The `run_command` used for each platform is required to
|
|
|
|
# test `systemd` services in docker
|
|
|
|
- name: debian-9
|
|
|
|
driver_config:
|
|
|
|
image: debian:9
|
|
|
|
run_command: /lib/systemd/systemd
|
|
|
|
provision_command:
|
2019-03-10 09:18:39 -03:00
|
|
|
- apt-get update && apt-get install -y udev locales git
|
2019-08-19 01:10:51 +01:00
|
|
|
- echo 'export PATH=${PATH}:/usr/local/go/bin' >/etc/default/golang.sh
|
|
|
|
- export PATH="${PATH}:/usr/local/go/bin"
|
2019-03-05 20:12:25 -03:00
|
|
|
- name: ubuntu-18.04
|
|
|
|
driver_config:
|
|
|
|
image: ubuntu:18.04
|
|
|
|
run_command: /lib/systemd/systemd
|
|
|
|
provision_command:
|
2019-03-10 09:18:39 -03:00
|
|
|
- apt-get update && apt-get install -y udev locales git
|
2019-08-19 01:10:51 +01:00
|
|
|
- echo 'export PATH=${PATH}:/usr/local/go/bin' >/etc/default/golang.sh
|
|
|
|
- export PATH="${PATH}:/usr/local/go/bin"
|
2019-03-05 20:12:25 -03:00
|
|
|
- name: ubuntu-16.04
|
|
|
|
driver_config:
|
|
|
|
image: ubuntu:16.04
|
|
|
|
run_command: /lib/systemd/systemd
|
|
|
|
provision_command:
|
2019-03-10 09:18:39 -03:00
|
|
|
- apt-get update && apt-get install -y udev locales git
|
2019-03-05 23:19:24 -03:00
|
|
|
- locale-gen en_US.UTF-8
|
|
|
|
- update-locale LANG=en_US.UTF-8
|
2019-08-19 01:10:51 +01:00
|
|
|
- echo 'export PATH=${PATH}:/usr/local/go/bin' >/etc/default/golang.sh
|
|
|
|
- export PATH="${PATH}:/usr/local/go/bin"
|
2019-03-05 20:12:25 -03:00
|
|
|
- name: centos-7
|
|
|
|
driver_config:
|
|
|
|
image: centos:7
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
2019-03-05 23:19:24 -03:00
|
|
|
provision_command:
|
|
|
|
- yum -y update && yum -y install udev git
|
2019-03-06 09:41:23 -03:00
|
|
|
# To test remote packages in RPM envs
|
|
|
|
- rpm --import https://zoom.us/linux/download/pubkey
|
2019-03-05 20:12:25 -03:00
|
|
|
- name: fedora
|
|
|
|
driver_config:
|
|
|
|
image: fedora
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provision_command:
|
2019-03-05 23:19:24 -03:00
|
|
|
- yum -y update && yum -y install udev git
|
2019-03-06 09:41:23 -03:00
|
|
|
# To test remote packages in RPM envs
|
|
|
|
- rpm --import https://zoom.us/linux/download/pubkey
|
2019-03-05 20:12:25 -03:00
|
|
|
# As of February 2019, there have been problems getting `opensuse` to work:
|
|
|
|
# * `opensuse` is deprecated
|
|
|
|
# * `opensuse/leap` grabs `15.x`, which doesn't run the `inspec` tests
|
|
|
|
# * `opensuse/tumbleweed` doesn't install `salt-minion`
|
|
|
|
# * `opensuse/leap:42.3` does work
|
|
|
|
# * `opensuse/salt-minion` uses `42.3` with `salt-minion` pre-installed
|
|
|
|
- name: opensuse-leap-salt-minion
|
|
|
|
driver_config:
|
|
|
|
image: opensuse/salt-minion
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provision_command:
|
2019-03-06 09:41:23 -03:00
|
|
|
- zypper refresh && zypper install -y udev git glibc-locale
|
2019-03-05 20:12:25 -03:00
|
|
|
- systemctl enable sshd.service
|
|
|
|
- cat /etc/os-release
|
2019-03-06 09:41:23 -03:00
|
|
|
# To test remote packages in RPM envs
|
|
|
|
- rpm --import https://zoom.us/linux/download/pubkey
|
2019-03-05 20:12:25 -03:00
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: salt_solo
|
|
|
|
log_level: info
|
|
|
|
require_chef: false
|
|
|
|
salt_version: latest
|
|
|
|
formula: packages
|
|
|
|
salt_copy_filter:
|
|
|
|
- .kitchen
|
|
|
|
- .git
|
2019-03-06 09:41:23 -03:00
|
|
|
pillars_from_files:
|
2019-03-05 20:12:25 -03:00
|
|
|
packages.sls: pillar.example
|
|
|
|
pillars:
|
|
|
|
top.sls:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- packages
|
|
|
|
state_top:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- packages
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
name: inspec
|
|
|
|
sudo: true
|
|
|
|
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
|
|
|
reporter:
|
|
|
|
- cli
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/default
|
|
|
|
|
|
|
|
suites:
|
|
|
|
- name: deb
|
|
|
|
excludes:
|
2019-03-05 23:19:24 -03:00
|
|
|
- ubuntu-16.04
|
|
|
|
- ubuntu-18.04
|
|
|
|
- centos-7
|
|
|
|
- fedora
|
|
|
|
- opensuse-leap-salt-minion
|
2019-03-10 09:18:39 -03:00
|
|
|
provisioner:
|
|
|
|
dependencies:
|
|
|
|
- name: node
|
|
|
|
repo: git
|
|
|
|
source: https://github.com/saltstack-formulas/node-formula.git
|
|
|
|
state_top:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- node
|
|
|
|
- packages
|
|
|
|
pillars_from_files:
|
|
|
|
packages.sls: pillar.example
|
|
|
|
pillars:
|
|
|
|
top.sls:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- node
|
|
|
|
- packages
|
|
|
|
node.sls:
|
|
|
|
node:
|
|
|
|
version: 11.11.0-1nodesource1
|
|
|
|
install_from_ppa: True
|
|
|
|
ppa:
|
|
|
|
repository_url: https://deb.nodesource.com/node_11.x
|
2019-03-05 23:19:24 -03:00
|
|
|
|
|
|
|
- name: ubu18
|
|
|
|
excludes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-16.04
|
|
|
|
- centos-7
|
|
|
|
- fedora
|
|
|
|
- opensuse-leap-salt-minion
|
2019-03-06 09:41:23 -03:00
|
|
|
provisioner:
|
|
|
|
pillars_from_files:
|
|
|
|
packages.sls: test/integration/default/pillar.example.ubuntu.1804
|
2019-03-05 23:19:24 -03:00
|
|
|
|
|
|
|
- name: ubu16
|
|
|
|
excludes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-18.04
|
2019-03-05 20:12:25 -03:00
|
|
|
- centos-7
|
|
|
|
- fedora
|
|
|
|
- opensuse-leap-salt-minion
|
2019-03-05 23:19:24 -03:00
|
|
|
provisioner:
|
2019-03-06 09:41:23 -03:00
|
|
|
pillars_from_files:
|
2019-03-05 23:19:24 -03:00
|
|
|
packages.sls: test/integration/default/pillar.example.ubuntu.1604
|
2019-03-05 20:12:25 -03:00
|
|
|
|
|
|
|
- name: fed
|
|
|
|
excludes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-16.04
|
|
|
|
- ubuntu-18.04
|
|
|
|
- centos-7
|
|
|
|
- opensuse-leap-salt-minion
|
|
|
|
provisioner:
|
2019-03-06 09:41:23 -03:00
|
|
|
pillars_from_files:
|
2019-03-05 20:12:25 -03:00
|
|
|
packages.sls: test/integration/default/pillar.example.fedora
|
|
|
|
|
2019-03-06 09:41:23 -03:00
|
|
|
- name: sus
|
|
|
|
excludes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-16.04
|
|
|
|
- ubuntu-18.04
|
|
|
|
- centos-7
|
|
|
|
- fedora
|
|
|
|
provisioner:
|
|
|
|
pillars_from_files:
|
|
|
|
packages.sls: test/integration/default/pillar.example.opensuse
|
|
|
|
|
2019-03-05 20:12:25 -03:00
|
|
|
- name: rpm
|
|
|
|
excludes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-16.04
|
|
|
|
- ubuntu-18.04
|
|
|
|
- fedora
|
2019-03-06 09:41:23 -03:00
|
|
|
- opensuse-leap-salt-minion
|
2019-03-05 20:12:25 -03:00
|
|
|
provisioner:
|
|
|
|
dependencies:
|
|
|
|
- name: epel
|
|
|
|
repo: git
|
|
|
|
source: https://github.com/saltstack-formulas/epel-formula.git
|
|
|
|
state_top:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- epel
|
|
|
|
- packages
|
2019-03-06 09:41:23 -03:00
|
|
|
pillars_from_files:
|
2019-03-05 20:12:25 -03:00
|
|
|
packages.sls: test/integration/default/pillar.example.redhat
|
|
|
|
pillars:
|
|
|
|
top.sls:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- epel
|
|
|
|
- packages
|
|
|
|
epel.sls:
|
|
|
|
disabled: false
|