Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to master branch #1

Merged
merged 78 commits into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
112a376
passing the hold and allow_updated to docker pkg.installed
tyhunt99 Feb 12, 2019
1646765
accessing correct level of config
tyhunt99 Feb 12, 2019
e2b1e79
Fix rendering error on MacOS ('oscodename')
noelmcloughlin May 30, 2019
5f7db53
Docker is brew name
noelmcloughlin May 30, 2019
a96c4c2
No upstart/sysv on Darwin
noelmcloughlin May 30, 2019
ae7b707
Merge branch 'master' into master
noelmcloughlin Jun 23, 2019
f7dd453
Merge pull request #193 from tyhunt99/master
noelmcloughlin Jun 23, 2019
e297ddf
Merge branch 'master' into fixes2
noelmcloughlin Jun 23, 2019
5c29dbd
Merge pull request #208 from noelmcloughlin/fixes2
noelmcloughlin Jun 23, 2019
6b1b5fe
chore(python): use python3 apt packages
noelmcloughlin Jul 2, 2019
9064121
fix(syntax): param 'refresh' replaces 'refresh_db'
noelmcloughlin Jul 2, 2019
59810ad
Merge pull request #211 from noelmcloughlin/repo
myii Jul 3, 2019
7d900fa
Using the tplroot method (borrowed from the ufw-formula) prevents hav…
VBH-Jenkins Jul 4, 2019
9193df0
Updating apt (ubuntu/debian) resulted in the following error:
VBH-Jenkins Jul 4, 2019
a245db5
Updating apt (ubuntu/debian) resulted in the following error:
VBH-Jenkins Jul 4, 2019
f7ace8c
Merge remote-tracking branch 'origin/master'
VBH-Jenkins Jul 4, 2019
9b8feb3
Merge pull request #214 from remichristiaan/master
noelmcloughlin Jul 4, 2019
39577e2
Revert "Make it easier when using salt-ssh"
noelmcloughlin Jul 4, 2019
fa8aec4
Merge pull request #215 from saltstack-formulas/revert-214-master
noelmcloughlin Jul 4, 2019
0253e6e
Use tpldir to make imports work from e.g. salt-ssh without having to …
VBH-Jenkins Jul 5, 2019
9b139aa
fix(sls): avoid unnecessary rendering error
noelmcloughlin Jul 9, 2019
b0ce436
doc(clean): make remove alias for clean
noelmcloughlin Jul 9, 2019
be9a769
fix(merge): workaround broken map.jinja merge
noelmcloughlin Jul 9, 2019
79faa17
Merge branch 'master' into broken_merge
noelmcloughlin Jul 9, 2019
71b46bd
chore(template): align osmap with template-formula
noelmcloughlin Jul 9, 2019
9ed1016
Merge branch 'master' into osfamily
noelmcloughlin Jul 9, 2019
8d61745
feat(macos): docker desktop for mac support
noelmcloughlin Jul 9, 2019
e0cccf4
doc(clean): make remove alias for clean
noelmcloughlin Jul 9, 2019
1ac9968
chore(template): align osmap with template-formula
noelmcloughlin Jul 9, 2019
f60c1c7
feat(macos): docker desktop for mac support
noelmcloughlin Jul 9, 2019
95a1244
Merge pull request #217 from noelmcloughlin/rendering_error
myii Jul 10, 2019
d538679
Merge branch 'master' into desktop-for-mac
noelmcloughlin Jul 11, 2019
5baf6d2
pillar.example registry-mirrors
greut Jul 17, 2019
b4b05c1
Merge pull request #212 from noelmcloughlin/python3
noelmcloughlin Jul 19, 2019
2f2282b
Merge pull request #220 from noelmcloughlin/broken_merge
noelmcloughlin Jul 19, 2019
2b23c4a
Merge pull request #218 from noelmcloughlin/clean
noelmcloughlin Jul 19, 2019
09c9a1f
Merge branch 'master' into osfamily
noelmcloughlin Jul 19, 2019
cb2ba06
Merge pull request #221 from noelmcloughlin/osfamily
noelmcloughlin Jul 19, 2019
732f269
Merge branch 'master' into desktop-for-mac
noelmcloughlin Jul 19, 2019
9a5970f
Merge pull request #222 from noelmcloughlin/desktop-for-mac
noelmcloughlin Jul 19, 2019
194456b
Merge branch 'master' into master
noelmcloughlin Jul 19, 2019
89c07be
Merge pull request #216 from remichristiaan/master
noelmcloughlin Jul 19, 2019
947b062
Merge pull request #223 from greut/patch-1
noelmcloughlin Jul 19, 2019
145967c
fix(install): resolve #224
noelmcloughlin Jul 22, 2019
00353cf
refactor(init): remove duplicated jinja
noelmcloughlin Jul 22, 2019
2bbed5c
Update docker/install.sls
noelmcloughlin Jul 22, 2019
c9b24e1
Merge pull request #227 from noelmcloughlin/dups
noelmcloughlin Jul 22, 2019
3a637c7
Merge pull request #226 from noelmcloughlin/fix
myii Jul 22, 2019
71ee3c4
feat(linux): archlinux support (#229)
noelmcloughlin Aug 17, 2019
ea6be11
feat(semantic-release): implement for this formula
myii Oct 16, 2019
9e8e1e8
fix(compose-ng.sls): fix `salt-lint` errors
myii Oct 16, 2019
62122d2
test(testinfra): remove from the formula
myii Oct 16, 2019
451d76d
test(inspec): add tests for package, config & service
myii Oct 16, 2019
dce112a
fix(pillar.example): ensure `docker.config` is available
myii Oct 16, 2019
222fc6d
docs(readme): move to `docs/` directory and modify accordingly
myii Oct 16, 2019
3eaed1b
ci(travis): update `salt-lint` config for `v0.0.10`
myii Oct 23, 2019
d71e747
Merge pull request #235 from myii/feat/implement-semantic-release
myii Oct 23, 2019
3fa1e4f
chore(release): 0.42.0 [skip ci]
semantic-release-bot Oct 23, 2019
d87e787
ci(kitchen): use `debian-10-master-py3` instead of `develop` [skip ci]
myii Oct 24, 2019
2189efb
ci(kitchen+travis): upgrade matrix after `2019.2.2` release [skip ci]
myii Oct 30, 2019
01ece3d
fix(release.config.js): use full commit hash in commit link [skip ci]
myii Oct 31, 2019
18fa798
perf(travis): improve `salt-lint` invocation [skip ci]
myii Nov 2, 2019
71c5bcb
ci(kitchen): use `develop` image until `master` is ready (`amazonlinu…
myii Nov 3, 2019
fe184e9
ci(travis): use build config validation (beta) [skip ci]
myii Nov 13, 2019
f0a07fc
ci(travis): apply changes from build config validation [skip ci]
myii Nov 16, 2019
340556e
ci(travis): opt-in to `dpl v2` to complete build config validation [s…
myii Nov 20, 2019
ba127a0
ci(travis): run `shellcheck` during lint job [skip ci]
myii Nov 27, 2019
12bf914
ci(travis): quote pathspecs used with `git ls-files` [skip ci]
myii Nov 27, 2019
734d4e3
ci(gemfile): restrict `train` gem version until upstream fix [skip ci]
myii Dec 16, 2019
2590d61
ci(travis): use `major.minor` for `semantic-release` version [skip ci]
myii Dec 22, 2019
cc10d97
feat: support optional container removal before start in upstart/systemd
solarchad Jan 16, 2020
6bf1642
Merge pull request #238 from solarchad/support-rm-container-prestart
myii Jan 22, 2020
15c803d
chore(release): 0.43.0 [skip ci]
semantic-release-bot Jan 22, 2020
80a2a98
fix: avoid setting multiple pre-start stanzas in upstart
solarchad Jan 22, 2020
13c1c20
Merge pull request #239 from solarchad/support-rm-container-prestart-…
myii Jan 22, 2020
27b509e
ci(kitchen): avoid using bootstrap for `master` instances [skip ci]
myii Feb 5, 2020
7de17e2
chore(rubocop): move `LineLength` cop from `Metrics` to `Layout` [ski…
myii Feb 14, 2020
c3c4eb8
chore(gitignore): update from the `template-formula` [skip ci]
myii Feb 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 109 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
.kitchen/
.ruby-version
junit*.xml

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a packager
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
Expand All @@ -15,5 +43,81 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
*,cover
*.cover
.hypothesis/
.kitchen
.kitchen.local.yml
kitchen.local.yml
junit-*.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# Bundler
.bundle/
Gemfile.lock

# copied `.md` files used for conversion to `.rst` using `m2r`
docs/*.md

# Vim
*.sw?

## Collected when centralising formulas (check and sort)
# `collectd-formula`
.pytest_cache/
/.idea/
Dockerfile.*_*
ignore/
tmp/
78 changes: 0 additions & 78 deletions .kitchen.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
# General overrides used across formulas in the org
Layout/LineLength:
# Increase from default of `80`
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
Max: 88

# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`
17 changes: 17 additions & 0 deletions .salt-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
exclude_paths: []
rules:
204: # Lines should be no longer that 160 chars
ignore: |
docker/repo.sls
skip_list:
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates
- 205 # Use ".sls" as a Salt State file extension
# Skipping `207` and `208` because `210` is sufficient, at least for the time-being
# I.e. Allows 3-digit unquoted codes to still be used, such as `644` and `755`
- 207 # File modes should always be encapsulated in quotation marks
- 208 # File modes should always contain a leading zero
tags: []
verbosity: 1
122 changes: 108 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,116 @@
sudo: required
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
## Machine config
os: 'linux'
arch: 'amd64'
dist: 'bionic'
version: '~> 1.0'

## Language and cache config
language: 'ruby'
cache: 'bundler'

language: python

## Services config
services:
- docker

before_install:
- bundle install
## Script to run for the test stage
script:
- bin/kitchen verify "${INSTANCE}"

## Stages and jobs matrix
stages:
- test
- name: 'release'
if: 'branch = master AND type != pull_request'
jobs:
include:
## Define the test stage that runs the linters (and testing matrix, if applicable)

env:
matrix:
- INSTANCE: default-ubuntu-1804
- INSTANCE: default-debian-jessie
- INSTANCE: default-debian-stretch
- INSTANCE: version-1131-debian-jessie
- INSTANCE: version-1131-debian-stretch
# Run all of the linters in a single job
- language: 'node_js'
node_js: 'lts/*'
env: 'Lint'
name: 'Lint: salt-lint, yamllint, rubocop, shellcheck & commitlint'
before_install: 'skip'
script:
# Install and run `salt-lint`
- pip install --user salt-lint
- git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst'
| xargs salt-lint
# Install and run `yamllint`
# Need at least `v1.17.0` for the `yaml-files` setting
- pip install --user yamllint>=1.17.0
- yamllint -s .
# Install and run `rubocop`
- gem install rubocop
- rubocop -d
# Run `shellcheck` (already pre-installed in Travis)
- shellcheck --version
- git ls-files -- '*.sh' '*.bash' '*.ksh'
| xargs shellcheck
# Install and run `commitlint`
- npm i -D @commitlint/config-conventional
@commitlint/travis-cli
- commitlint-travis

script:
- bundle exec kitchen verify ${INSTANCE}
## Define the rest of the matrix based on Kitchen testing
# Make sure the instances listed below match up with
# the `platforms` defined in `kitchen.yml`
- env: INSTANCE=default-debian-10-master-py3
# - env: INSTANCE=default-ubuntu-1804-master-py3
# - env: INSTANCE=default-centos-8-master-py3
# - env: INSTANCE=default-fedora-31-master-py3
# - env: INSTANCE=default-opensuse-leap-151-master-py3
# - env: INSTANCE=default-amazonlinux-2-master-py3
# - env: INSTANCE=default-arch-base-latest-master-py2
# - env: INSTANCE=default-debian-10-2019-2-py3
- env: INSTANCE=default-debian-9-2019-2-py3
- env: INSTANCE=default-ubuntu-1804-2019-2-py3
# - env: INSTANCE=default-centos-8-2019-2-py3
# - env: INSTANCE=default-fedora-31-2019-2-py3
# - env: INSTANCE=default-opensuse-leap-151-2019-2-py3
# - env: INSTANCE=default-centos-7-2019-2-py2
# - env: INSTANCE=default-amazonlinux-2-2019-2-py3
- env: INSTANCE=default-arch-base-latest-2019-2-py2
# - env: INSTANCE=default-fedora-30-2018-3-py3
- env: INSTANCE=default-debian-9-2018-3-py2
# - env: INSTANCE=default-ubuntu-1604-2018-3-py2
# - env: INSTANCE=default-centos-7-2018-3-py2
# - env: INSTANCE=default-opensuse-leap-151-2018-3-py2
# - env: INSTANCE=default-amazonlinux-1-2018-3-py2
# - env: INSTANCE=default-arch-base-latest-2018-3-py2
# - env: INSTANCE=default-debian-8-2017-7-py2
- env: INSTANCE=default-ubuntu-1604-2017-7-py2
# - env: INSTANCE=default-centos-6-2017-7-py2
# - env: INSTANCE=default-fedora-30-2017-7-py2
# - env: INSTANCE=default-opensuse-leap-151-2017-7-py2
# - env: INSTANCE=default-amazonlinux-1-2017-7-py2
# - env: INSTANCE=default-arch-base-latest-2017-7-py2

## Define the release stage that runs `semantic-release`
- stage: 'release'
language: 'node_js'
node_js: 'lts/*'
env: 'Release'
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
before_install: 'skip'
script:
# Update `AUTHORS.md`
- export MAINTAINER_TOKEN=${GH_TOKEN}
- go get github.com/myii/maintainer
- maintainer contributor

# Install all dependencies required for `semantic-release`
- npm i -D @semantic-release/changelog@3
@semantic-release/exec@3
@semantic-release/git@7
deploy:
provider: 'script'
# Opt-in to `dpl v2` to complete the Travis build config validation (beta)
# * https://docs.travis-ci.com/user/build-config-validation
# Deprecated `skip_cleanup` can now be avoided, `cleanup: false` is by default
edge: true
# Run `semantic-release`
script: 'npx semantic-release@15.14'
Loading