Skip to content

Commit 7e5699e

Browse files
committed
feat: implement ssf to cover current 30+ semrel formulas
1 parent 8ea7620 commit 7e5699e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5443
-0
lines changed

.gitignore

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a packager
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.kitchen
49+
.kitchen.local.yml
50+
kitchen.local.yml
51+
junit-*.xml
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
71+
# PyBuilder
72+
target/
73+
74+
# Jupyter Notebook
75+
.ipynb_checkpoints
76+
77+
# pyenv
78+
.python-version
79+
80+
# celery beat schedule file
81+
celerybeat-schedule
82+
83+
# SageMath parsed files
84+
*.sage.py
85+
86+
# dotenv
87+
.env
88+
89+
# virtualenv
90+
.venv
91+
venv/
92+
ENV/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
104+
# mypy
105+
.mypy_cache/
106+
107+
# Bundler
108+
Gemfile.lock
109+
110+
# copied `.md` files used for conversion to `.rst` using `m2r`
111+
docs/*.md
112+
113+
# Vim
114+
*.sw?
115+
116+
## Collected when centralising formulas (check and sort)
117+
# `collectd-formula`
118+
.pytest_cache/
119+
/.idea/
120+
Dockerfile.*_*
121+
ignore/
122+
tmp/

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
stages:
5+
- commitlint
6+
- name: release
7+
if: branch = master AND type != pull_request
8+
9+
jobs:
10+
include:
11+
# Define the commitlint stage
12+
- stage: commitlint
13+
language: node_js
14+
node_js: lts/*
15+
before_install: skip
16+
script:
17+
- npm install @commitlint/config-conventional -D
18+
- npm install @commitlint/travis-cli -D
19+
- commitlint-travis
20+
# Define the release stage that runs semantic-release
21+
- stage: release
22+
language: node_js
23+
node_js: lts/*
24+
before_install: skip
25+
script:
26+
# Update `AUTHORS.md`
27+
- export MAINTAINER_TOKEN=${GH_TOKEN}
28+
- go get github.com/myii/maintainer
29+
- maintainer contributor
30+
31+
# Install all dependencies required for `semantic-release`
32+
- npm install @semantic-release/changelog@3 -D
33+
- npm install @semantic-release/exec@3 -D
34+
- npm install @semantic-release/git@7 -D
35+
deploy:
36+
provider: script
37+
skip_cleanup: true
38+
script:
39+
# Run `semantic-release`
40+
- npx semantic-release@15

CHANGELOG.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Changelog
2+
3+
## 0.1.0-rc.5 (2019-08-02)
4+
5+
6+
### Code Refactoring
7+
8+
* **config.formulas:** centralise the add/rm functionality
9+
10+
11+
### Features
12+
* **config.formulas:** use per-file override for `semrel_formula` name
13+
* **kitchen:** use single unmatching `includes` rather than all `excludes`
14+
15+
16+
## 0.1.0-rc.4 (2019-07-31)
17+
18+
19+
### Documentation
20+
21+
* **readme:** add to this formula
22+
23+
24+
### Features
25+
26+
* **formula:** add `dhcpd-formula`
27+
* **libvirt:** update with latest upstream changes
28+
29+
30+
### Styles
31+
32+
* **config.formulas:** improve comments, format and state names
33+
* **config.formulas:** use YAML block scalar (folded+strip) for `args`
34+
35+
36+
## 0.1.0-rc.3 (2019-07-30)
37+
38+
39+
### Code Refactoring
40+
41+
* **formula:** use extend with node anchors for `semrel_files`
42+
* **yaml:** use extend with node anchors wherever possible
43+
44+
45+
### Features
46+
47+
* **config.formulas:** includes `files` within each `formula`
48+
* **formula:** add `ssf-formula`
49+
* **formula:** add `stack-formula`
50+
* **tofs:** add updated `CONTRIBUTING` for `template-formula`
51+
* **travis:** ensure formulas without `platforms` don't run tests
52+
53+
54+
### Styles
55+
56+
* **platforms_matrix:** align `inspec_suite` as the last column
57+
58+
59+
## 0.1.0-rc.2 (2019-07-25)
60+
61+
62+
### Features
63+
64+
* **config.formulas:** use the same PR branch for next batch of PRs
65+
* **tofs:** add specific TOFS doc for `nginx-formula`
66+
* **tofs:** add specific TOFS files for `systemd-formula`
67+
* **tofs:** update from latest `template-formula` version
68+
69+
70+
## 0.1.0-rc.1 (2019-07-21)
71+
72+
73+
### Code Refactoring
74+
75+
* **pillars:** use in same way as `state_top`
76+
* **state_top:** include `matcher` as part of the config
77+
* **systemd:** remove Jinja-based workaround to avoid `centos-6`
78+
79+
80+
### Features
81+
82+
* implement `ssf` to cover current 30+ `semrel` formulas
83+
* **ci:** ignore `opensuse-15` comment for `opensuse-42` (globally)
84+
* **ci:** ignore `systemd` comment for `centos-6` (globally)
85+
* **cirrus+tofs:** remove files if respective booleans are `False`
86+
* **config.formulas:** use `active` for formulas & files to run for
87+
* **format_matcher:** add macro to remove duplication for matchers
88+
* **inspec:** manage `inspec/*` files using single templates for each
89+
* **kitchen:** ensure consistent config collection under each suite
90+
* **kitchen:** establish `includes` and `excludes`
91+
* **kitchen:** use `*cludes` fix for `php` & `rkhunter`
92+
* **sysstat:** add new formula after `semrel` PR merged
93+
* **tofs:** manage TOFS files based upon value of `use_tofs`
94+
* **tofs:** add specific `CONTRIBUTING` for `template-formula`
95+
* **travis:** allow `addons` to be provided
96+
* **travis:** use `xenial` for all Travis runs
97+
* **travis:** allow `dist` to be configurable
98+
* **travis+cirrus:** use `bin/kitchen` instead of via. `bundle exec`

FORMULA

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: ssf
2+
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS
3+
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS
4+
version: 0.1.0
5+
release: 1
6+
minimum_version: 2017.7
7+
summary: ssf formula
8+
description: Formula used to maintain other SaltStack Formulas, particularly `semantic-release` formulas
9+
top_level_dir: ssf

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem 'kitchen-docker', '>= 2.9'
4+
gem 'kitchen-salt', '>= 0.6.0'
5+
gem 'kitchen-inspec', '>= 1.1'
6+

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

docs/CHANGELOG.rst

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
2+
Changelog
3+
=========
4+
5+
0.1.0-rc.5 (2019-08-02)
6+
-----------------------
7+
8+
Code Refactoring
9+
^^^^^^^^^^^^^^^^
10+
11+
12+
* **config.formulas:** centralise the add/rm functionality
13+
14+
Features
15+
^^^^^^^^
16+
17+
18+
* **config.formulas:** use per-file override for ``semrel_formula`` name
19+
* **kitchen:** use single unmatching ``includes`` rather than all ``excludes``
20+
21+
0.1.0-rc.4 (2019-07-31)
22+
-----------------------
23+
24+
Documentation
25+
^^^^^^^^^^^^^
26+
27+
28+
* **readme:** add to this formula
29+
30+
Features
31+
^^^^^^^^
32+
33+
34+
* **formula:** add ``dhcpd-formula``
35+
* **libvirt:** update with latest upstream changes
36+
37+
Styles
38+
^^^^^^
39+
40+
41+
* **config.formulas:** improve comments, format and state names
42+
* **config.formulas:** use YAML block scalar (folded+strip) for ``args``
43+
44+
0.1.0-rc.3 (2019-07-30)
45+
-----------------------
46+
47+
Code Refactoring
48+
^^^^^^^^^^^^^^^^
49+
50+
51+
* **formula:** use extend with node anchors for ``semrel_files``
52+
* **yaml:** use extend with node anchors wherever possible
53+
54+
Features
55+
^^^^^^^^
56+
57+
58+
* **config.formulas:** includes ``files`` within each ``formula``
59+
* **formula:** add ``ssf-formula``
60+
* **formula:** add ``stack-formula``
61+
* **tofs:** add updated ``CONTRIBUTING`` for ``template-formula``
62+
* **travis:** ensure formulas without ``platforms`` don't run tests
63+
64+
Styles
65+
^^^^^^
66+
67+
68+
* **platforms_matrix:** align ``inspec_suite`` as the last column
69+
70+
0.1.0-rc.2 (2019-07-25)
71+
-----------------------
72+
73+
Features
74+
^^^^^^^^
75+
76+
77+
* **config.formulas:** use the same PR branch for next batch of PRs
78+
* **tofs:** add specific TOFS doc for ``nginx-formula``
79+
* **tofs:** add specific TOFS files for ``systemd-formula``
80+
* **tofs:** update from latest ``template-formula`` version
81+
82+
0.1.0-rc.1 (2019-07-21)
83+
-----------------------
84+
85+
Code Refactoring
86+
^^^^^^^^^^^^^^^^
87+
88+
89+
* **pillars:** use in same way as ``state_top``
90+
* **state_top:** include ``matcher`` as part of the config
91+
* **systemd:** remove Jinja-based workaround to avoid ``centos-6``
92+
93+
Features
94+
^^^^^^^^
95+
96+
97+
* implement ``ssf`` to cover current 30+ ``semrel`` formulas
98+
* **ci:** ignore ``opensuse-15`` comment for ``opensuse-42`` (globally)
99+
* **ci:** ignore ``systemd`` comment for ``centos-6`` (globally)
100+
* **cirrus+tofs:** remove files if respective booleans are ``False``
101+
* **config.formulas:** use ``active`` for formulas & files to run for
102+
* **format_matcher:** add macro to remove duplication for matchers
103+
* **inspec:** manage ``inspec/*`` files using single templates for each
104+
* **kitchen:** ensure consistent config collection under each suite
105+
* **kitchen:** establish ``includes`` and ``excludes``
106+
* **kitchen:** use ``*cludes`` fix for ``php`` & ``rkhunter``
107+
* **sysstat:** add new formula after ``semrel`` PR merged
108+
* **tofs:** manage TOFS files based upon value of ``use_tofs``
109+
* **tofs:** add specific ``CONTRIBUTING`` for ``template-formula``
110+
* **travis:** allow ``addons`` to be provided
111+
* **travis:** use ``xenial`` for all Travis runs
112+
* **travis:** allow ``dist`` to be configurable
113+
* **travis+cirrus:** use ``bin/kitchen`` instead of via. ``bundle exec``

0 commit comments

Comments
 (0)