mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
89 lines
1.9 KiB
YAML
89 lines
1.9 KiB
YAML
# -*- 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
|
|
|
|
platforms:
|
|
- name: debian-9
|
|
driver_config:
|
|
# This run_command is required to test systemd services in docker
|
|
run_command: /lib/systemd/systemd
|
|
provision_command:
|
|
- apt-get install udev -y
|
|
- name: ubuntu-18.04
|
|
driver_config:
|
|
run_command: /lib/systemd/systemd
|
|
provision_command:
|
|
- apt-get install udev -y
|
|
- name: centos-7
|
|
driver_config:
|
|
image: centos:7
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provisioner:
|
|
name: salt_solo
|
|
log_level: debug
|
|
require_chef: false
|
|
salt_version: latest
|
|
formula: template
|
|
salt_copy_filter:
|
|
- .kitchen
|
|
- .git
|
|
pillars-from-files:
|
|
template.sls: pillar.example
|
|
pillars:
|
|
top.sls:
|
|
base:
|
|
'*':
|
|
- template
|
|
state_top:
|
|
base:
|
|
'*':
|
|
- template
|
|
|
|
verifier:
|
|
# https://www.inspec.io/
|
|
name: inspec
|
|
sudo: true
|
|
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
|
reporter:
|
|
- cli
|
|
inspec_tests:
|
|
- path: test/integration/default
|
|
|
|
suites:
|
|
- name: default
|
|
# Below is an example where test suites are segregated by os_family
|
|
# - name: debian
|
|
# excludes:
|
|
# - centos-7
|
|
# - name: redhat
|
|
# excludes:
|
|
# - debian-9
|
|
# - ubuntu-18.04
|
|
# provisioner:
|
|
# # You can add dependencies on other formulas to set up this formula's environment
|
|
# dependencies:
|
|
# - name: epel
|
|
# repo: git
|
|
# source: https://github.com/saltstack-formulas/epel-formula.git
|
|
# state_top:
|
|
# base:
|
|
# '*':
|
|
# - epel
|
|
# - template
|
|
# pillars:
|
|
# top.sls:
|
|
# base:
|
|
# '*':
|
|
# - epel
|
|
# - template
|
|
# epel.sls:
|
|
# disabled: false
|