chore: use semantic-release
cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.1)
This commit is contained in:
parent
c3692e6f49
commit
e7c4cdec1c
5 changed files with 45 additions and 50 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -48,6 +48,7 @@ coverage.xml
|
||||||
.kitchen
|
.kitchen
|
||||||
.kitchen.local.yml
|
.kitchen.local.yml
|
||||||
kitchen.local.yml
|
kitchen.local.yml
|
||||||
|
junit-*.xml
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
@ -111,3 +112,11 @@ docs/*.md
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
## Collected when centralising formulas (check and sort)
|
||||||
|
# `collectd-formula`
|
||||||
|
.pytest_cache/
|
||||||
|
/.idea/
|
||||||
|
Dockerfile.*_*
|
||||||
|
ignore/
|
||||||
|
tmp/
|
||||||
|
|
21
.travis.yml
21
.travis.yml
|
@ -1,3 +1,6 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- commitlint
|
- commitlint
|
||||||
|
@ -7,23 +10,13 @@ stages:
|
||||||
sudo: required
|
sudo: required
|
||||||
cache: bundler
|
cache: bundler
|
||||||
language: ruby
|
language: ruby
|
||||||
|
dist: xenial
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
# Make sure the instances listed below match up with
|
# Make sure the instances listed below match up with
|
||||||
# the `platforms` defined in `kitchen.yml`
|
# the `platforms` defined in `kitchen.yml`
|
||||||
# NOTE: Please try to select up to six instances that add some meaningful
|
|
||||||
# testing of the formula's behaviour. If possible, try to refrain from
|
|
||||||
# the classical "chosing all the instances because I want to test on
|
|
||||||
# another/all distro/s" trap: it will just add time to the testing (see
|
|
||||||
# the discussion on #121). As an example, the set chosen below covers
|
|
||||||
# the most used distros families, systemd and non-systemd and the latest
|
|
||||||
# three supported Saltstack versions with python2 and 3."
|
|
||||||
# As for `kitchen.yml`, that should still contain all of the platforms,
|
|
||||||
# to allow for comprehensive local testing
|
|
||||||
# Ref: https://github.com/saltstack-formulas/template-formula/issues/118
|
|
||||||
# Ref: https://github.com/saltstack-formulas/template-formula/issues/121
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- INSTANCE: default-debian-9-develop-py3
|
- INSTANCE: default-debian-9-develop-py3
|
||||||
|
@ -40,19 +33,15 @@ env:
|
||||||
# - INSTANCE: default-ubuntu-1604-2018-3-py2
|
# - INSTANCE: default-ubuntu-1604-2018-3-py2
|
||||||
# - INSTANCE: default-centos-7-2018-3-py2
|
# - INSTANCE: default-centos-7-2018-3-py2
|
||||||
- INSTANCE: default-fedora-29-2018-3-py2
|
- INSTANCE: default-fedora-29-2018-3-py2
|
||||||
# TODO: Use this when fixed instead of `opensuse-leap-42`
|
|
||||||
# Ref: https://github.com/netmanagers/salt-image-builder/issues/2
|
|
||||||
# - INSTANCE: default-opensuse-leap-15-2018-3-py2
|
|
||||||
- INSTANCE: default-opensuse-leap-42-2018-3-py2
|
- INSTANCE: default-opensuse-leap-42-2018-3-py2
|
||||||
# - INSTANCE: default-debian-8-2017-7-py2
|
# - INSTANCE: default-debian-8-2017-7-py2
|
||||||
# - INSTANCE: default-ubuntu-1604-2017-7-py2
|
# - INSTANCE: default-ubuntu-1604-2017-7-py2
|
||||||
# TODO: Enable after improving the formula to work with other than `systemd`
|
|
||||||
- INSTANCE: default-centos-6-2017-7-py2
|
- INSTANCE: default-centos-6-2017-7-py2
|
||||||
# - INSTANCE: default-fedora-28-2017-7-py2
|
# - INSTANCE: default-fedora-28-2017-7-py2
|
||||||
# - INSTANCE: default-opensuse-leap-42-2017-7-py2
|
# - INSTANCE: default-opensuse-leap-42-2017-7-py2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bundle exec kitchen verify ${INSTANCE}
|
- bin/kitchen verify ${INSTANCE}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|
41
kitchen.yml
41
kitchen.yml
|
@ -44,7 +44,7 @@ platforms:
|
||||||
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT 2019.2
|
## SALT `2019.2`
|
||||||
- name: debian-9-2019-2-py3
|
- name: debian-9-2019-2-py3
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2019.2-py3:debian-9
|
image: netmanagers/salt-2019.2-py3:debian-9
|
||||||
|
@ -62,7 +62,7 @@ platforms:
|
||||||
image: netmanagers/salt-2019.2-py3:opensuse-leap-15
|
image: netmanagers/salt-2019.2-py3:opensuse-leap-15
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT 2018.3
|
## SALT `2018.3`
|
||||||
- name: debian-9-2018-3-py2
|
- name: debian-9-2018-3-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2018.3-py2:debian-9
|
image: netmanagers/salt-2018.3-py2:debian-9
|
||||||
|
@ -75,25 +75,18 @@ platforms:
|
||||||
- name: fedora-29-2018-3-py2
|
- name: fedora-29-2018-3-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2018.3-py2:fedora-29
|
image: netmanagers/salt-2018.3-py2:fedora-29
|
||||||
# TODO: Use this when fixed instead of `opensuse-leap-42`
|
|
||||||
# Ref: https://github.com/netmanagers/salt-image-builder/issues/2
|
|
||||||
# - name: opensuse-leap-15-2018-3-py2
|
|
||||||
# driver:
|
|
||||||
# image: netmanagers/salt-2018.3-py2:opensuse-leap-15
|
|
||||||
# run_command: /usr/lib/systemd/systemd
|
|
||||||
- name: opensuse-leap-42-2018-3-py2
|
- name: opensuse-leap-42-2018-3-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2018.3-py2:opensuse-leap-42
|
image: netmanagers/salt-2018.3-py2:opensuse-leap-42
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT 2017.7
|
## SALT `2017.7`
|
||||||
- name: debian-8-2017-7-py2
|
- name: debian-8-2017-7-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2017.7-py2:debian-8
|
image: netmanagers/salt-2017.7-py2:debian-8
|
||||||
- name: ubuntu-1604-2017-7-py2
|
- name: ubuntu-1604-2017-7-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2017.7-py2:ubuntu-16.04
|
image: netmanagers/salt-2017.7-py2:ubuntu-16.04
|
||||||
# TODO: Modify the formula to work for non-`systemd` platforms
|
|
||||||
- name: centos-6-2017-7-py2
|
- name: centos-6-2017-7-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2017.7-py2:centos-6
|
image: netmanagers/salt-2017.7-py2:centos-6
|
||||||
|
@ -115,9 +108,18 @@ provisioner:
|
||||||
salt_copy_filter:
|
salt_copy_filter:
|
||||||
- .kitchen
|
- .kitchen
|
||||||
- .git
|
- .git
|
||||||
dependencies:
|
|
||||||
- name: states
|
verifier:
|
||||||
path: ./test/salt
|
# https://www.inspec.io/
|
||||||
|
name: inspec
|
||||||
|
sudo: true
|
||||||
|
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
||||||
|
reporter:
|
||||||
|
- cli
|
||||||
|
|
||||||
|
suites:
|
||||||
|
- name: default
|
||||||
|
provisioner:
|
||||||
state_top:
|
state_top:
|
||||||
base:
|
base:
|
||||||
'G@os_family:Suse':
|
'G@os_family:Suse':
|
||||||
|
@ -132,16 +134,9 @@ provisioner:
|
||||||
- logrotate
|
- logrotate
|
||||||
pillars_from_files:
|
pillars_from_files:
|
||||||
logrotate.sls: pillar.example
|
logrotate.sls: pillar.example
|
||||||
|
dependencies:
|
||||||
|
- name: states
|
||||||
|
path: ./test/salt
|
||||||
verifier:
|
verifier:
|
||||||
# https://www.inspec.io/
|
|
||||||
name: inspec
|
|
||||||
sudo: true
|
|
||||||
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
|
||||||
reporter:
|
|
||||||
- cli
|
|
||||||
inspec_tests:
|
inspec_tests:
|
||||||
- path: test/integration/default
|
- path: test/integration/default
|
||||||
|
|
||||||
suites:
|
|
||||||
- name: default
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Default InSpec Profile
|
# InSpec Profile: `default`
|
||||||
|
|
||||||
This shows the implementation of the Default InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
|
This shows the implementation of the `default` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
|
||||||
|
|
||||||
## Verify a profile
|
## Verify a profile
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: logrotate
|
name: default
|
||||||
title: logrotate Formula
|
title: logrotate formula
|
||||||
maintainer: Saltstack-formulas
|
maintainer: SaltStack Formulas
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
summary: Verify that the logrotate formula is setup and configured correctly
|
summary: Verify that the logrotate formula is setup and configured correctly
|
||||||
supports:
|
supports:
|
||||||
|
@ -10,3 +10,5 @@ supports:
|
||||||
- platform-name: fedora
|
- platform-name: fedora
|
||||||
- platform-name: opensuse
|
- platform-name: opensuse
|
||||||
- platform-name: suse
|
- platform-name: suse
|
||||||
|
- platform-name: freebsd
|
||||||
|
- platform-name: amazon
|
||||||
|
|
Loading…
Reference in a new issue