Commit graph

736 commits

Author SHA1 Message Date
Imran Iqbal
d68ed45109
test(platform_finger): extract from shared library 2020-09-04 21:21:41 +01:00
Daniel Dehennin
fc90075dd9 feat(map): generate a YAML file to validate map.jinja
We provide a new `_mapdata` state which generate a
`/tmp/salt_mapdata_dump.yaml` to be validated by `Inspec`.
2020-09-03 16:29:10 +02:00
Daniel Dehennin
31e1096add ci(kitchen): execute _madata state 2020-09-03 16:27:31 +02:00
Daniel Dehennin
3dc28bfb34 test(inspec): verify map.jinja dump
We store `map.jinja` dump files under the profile `files`
directory to access them with `inspec.profile.file('filename')` to
validate the content of the generated mapdata file.

The `default` inspec profile needs to depend on `share` to access the
`system` library.
2020-09-03 16:24:07 +02:00
Daniel Dehennin
64c2b6cdae test(inspec): share library to access some minion informations
The `system.hostname` return the result of either `hostname -s` or
`hostnamectl --static` depending of the availability of either command.

The `system.platform` return a hash with tweaked `inspec.platform`
values:

- `system.platform[:family]` provide a family name for Arch
- `system.platform[:name]` modify `amazon` to `amazonlinux`
- `system.platform[:release]` tweak Arch and Amazon Linux:
  - `Arch` is always `base-latest`
  - `Amazon Linux` release `2018` is resolved as `1`
- `system.platform[:finger]` is the concatenation of the name and the
  major release number (except for Ubuntu, which gives `ubuntu-20.04`
  for example)
2020-09-03 16:19:15 +02:00
Daniel
318ec37146
Merge pull request #204 from myii/ci/fix-centos6-suite-and-rename-to-upstart
ci(kitchen+travis): fix `centos6` suite and rename to `upstart`
2020-09-03 13:28:05 +00:00
Imran Iqbal
97309c6f4d
ci(kitchen+travis): fix centos6 suite and rename to upstart
* Semi-automated using https://github.com/myii/ssf-formula/pull/247
* Problems identified while reviewing:
  - https://github.com/saltstack-formulas/template-formula/pull/203
2020-09-01 18:52:51 +01:00
semantic-release-bot
7d3d989223 chore(release): 4.1.1 [skip ci]
## [4.1.1](https://github.com/saltstack-formulas/template-formula/compare/v4.1.0...v4.1.1) (2020-07-28)

### Continuous Integration

* **kitchen:** use `saltimages` Docker Hub where available [skip ci] ([eab21c3](eab21c39fb))
* **kitchen+travis:** add new platforms [skip ci] ([111a20b](111a20b47d))
* **kitchen+travis:** adjust matrix to add `3000.3` [skip ci] ([19ae826](19ae82632e))
* **travis:** add notifications => zulip [skip ci] ([ac93ad8](ac93ad82f1))
* **travis:** run linters using `pre-commit` ([6da26cc](6da26cca6a))

### Documentation

* add basic `pre-commit` usage instructions ([c78c068](c78c06876e))
* fix whitespace ([d98d98f](d98d98f4da))

### Styles

* **libtofs.jinja:** use Black-inspired Jinja formatting [skip ci] ([55bc69a](55bc69a2b1))
2020-07-28 15:31:08 +00:00
Imran Iqbal
01a7eaa865
Merge pull request #200 from dafyddj/precommit-commitlint
chore: add optional `pre-commit` configuration
2020-07-28 16:22:55 +01:00
Dafydd Jones
a1d53a9758 chore(pre-commit): check reST files using rstcheck 2020-07-28 13:39:59 +01:00
Dafydd Jones
6da26cca6a ci(travis): run linters using pre-commit 2020-07-27 22:20:45 +01:00
Dafydd Jones
c78c06876e docs: add basic pre-commit usage instructions 2020-07-27 22:20:45 +01:00
Dafydd Jones
d98d98f4da docs: fix whitespace 2020-07-27 21:57:20 +01:00
Dafydd Jones
01fd4e65f4 chore(pre-commit): add utility script to install hooks and environments 2020-07-27 21:57:20 +01:00
Imran Iqbal
55bc69a2b1
style(libtofs.jinja): use Black-inspired Jinja formatting [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/237
2020-07-20 17:37:39 +01:00
Dafydd Jones
70117620d7 chore(pre-commit): check Salt files using salt-lint 2020-07-10 15:33:33 +01:00
Dafydd Jones
c50c081069 chore(pre-commit): check shell files using shellcheck 2020-07-10 15:33:33 +01:00
Dafydd Jones
3f26ea7cd4 chore(pre-commit): check YAML files using yamllint 2020-07-10 15:33:33 +01:00
Dafydd Jones
5bccc810ba chore(pre-commit): check Ruby files using rubocop 2020-07-10 15:33:28 +01:00
Dafydd Jones
5cdefdc6a5 chore(pre-commit): check commit message using commitlint 2020-07-10 15:32:41 +01:00
Imran Iqbal
3ade71739c chore(gemfile.lock): update to latest gem versions (2020-W27) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/235
2020-07-06 14:32:27 +01:00
Imran Iqbal
b3a3f04d09 chore(gemfile.lock): update to latest gem versions (2020-W26) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/233
2020-06-26 12:48:34 +01:00
Imran Iqbal
44e29ce5c5 chore(gemfile.lock): update to latest gem versions (2020-W25) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/229
2020-06-21 13:00:52 +01:00
Imran Iqbal
eab21c39fb ci(kitchen): use saltimages Docker Hub where available [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/223
2020-06-15 17:02:18 +01:00
Imran Iqbal
040125dfaf chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/222
2020-06-15 15:13:01 +01:00
Imran Iqbal
2f3ed3259f chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/221
2020-06-05 22:22:02 +01:00
Imran Iqbal
111a20b47d ci(kitchen+travis): add new platforms [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/203
2020-05-28 17:15:23 +01:00
Imran Iqbal
b433f3eb9f chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/202
2020-05-28 00:22:51 +01:00
Imran Iqbal
ac93ad82f1 ci(travis): add notifications => zulip [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/191
2020-05-21 20:11:27 +01:00
Imran Iqbal
19ae82632e ci(kitchen+travis): adjust matrix to add 3000.3 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/185
2020-05-14 18:34:08 +01:00
semantic-release-bot
e6e3016ed9 chore(release): 4.1.0 [skip ci]
# [4.1.0](https://github.com/saltstack-formulas/template-formula/compare/v4.0.9...v4.1.0) (2020-05-12)

### Continuous Integration

* **kitchen+travis:** adjust matrix to add `3000.2` & remove `2018.3` [skip ci] ([efd8797](efd8797e66))
* **kitchen+travis:** remove `master-py2-arch-base-latest` [skip ci] ([d693f9d](d693f9dabf))
* **workflows/commitlint:** add to repo [skip ci] ([574d18f](574d18fc2c))

### Features

* **convert-formula.sh:** assign `@NONE` as whole-formula owner ([cceffff](cceffffef5))
2020-05-12 00:23:40 +00:00
Imran Iqbal
bbd50b3708
Merge pull request #198 from dafyddj/feat/mod-codeowners
feat(convert-formula.sh): assign `@NONE` as whole-formula owner
2020-05-12 01:16:13 +01:00
Dafydd Jones
cceffffef5 feat(convert-formula.sh): assign @NONE as whole-formula owner 2020-05-12 00:03:27 +01:00
Imran Iqbal
86c3ff7edb chore(codeowners): update semantic-release related files [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/174
2020-05-04 23:18:56 +01:00
Imran Iqbal
0a48c370c7
Merge pull request #197 from myii/chore/add-codeowners
chore(codeowners): add to repo [skip ci]
2020-05-04 15:42:36 +01:00
Imran Iqbal
9672880fd0
chore(codeowners): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/173
2020-05-04 10:32:43 +01:00
Imran Iqbal
574d18fc2c ci(workflows/commitlint): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/172
2020-05-04 09:33:09 +01:00
Imran Iqbal
efd8797e66 ci(kitchen+travis): adjust matrix to add 3000.2 & remove 2018.3 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/169
2020-05-02 07:59:26 +01:00
Imran Iqbal
d693f9dabf ci(kitchen+travis): remove master-py2-arch-base-latest [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/167
2020-05-02 04:31:28 +01:00
semantic-release-bot
96b581c1d4 chore(release): 4.0.9 [skip ci]
## [4.0.9](https://github.com/saltstack-formulas/template-formula/compare/v4.0.8...v4.0.9) (2020-04-25)

### Continuous Integration

* **gemfile.lock:** add to repo with updated `Gemfile` [skip ci] ([d798928](d798928675))

### Documentation

* **readme:** show only one level in table of contents ([446b815](446b815958))
2020-04-25 15:57:58 +00:00
N
44bc362742
Merge pull request #136 from noelmcloughlin/docs
docs(readme): show only one level in table of contents
2020-04-25 17:49:32 +02:00
Imran Iqbal
d798928675 ci(gemfile.lock): add to repo with updated Gemfile [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/163
2020-04-21 22:11:30 +01:00
semantic-release-bot
2846e42e82 chore(release): 4.0.8 [skip ci]
## [4.0.8](https://github.com/saltstack-formulas/template-formula/compare/v4.0.7...v4.0.8) (2020-04-19)

### Bug Fixes

* **libsaltcli:** update `salt-ssh` detection for `enable_ssh_minions` ([f0e7192](f0e7192fb5))
2020-04-19 17:07:20 +00:00
Imran Iqbal
f0e7192fb5 fix(libsaltcli): update salt-ssh detection for enable_ssh_minions
* Automated using https://github.com/myii/ssf-formula/pull/161
2020-04-19 17:51:15 +01:00
Imran Iqbal
19cded8567 chore(rubocop): use org-wide standard settings for Metrics/BlockLength [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/158
2020-04-18 13:47:32 +01:00
semantic-release-bot
dd19f43cfc chore(release): 4.0.7 [skip ci]
## [4.0.7](https://github.com/saltstack-formulas/template-formula/compare/v4.0.6...v4.0.7) (2020-04-15)

### Bug Fixes

* **convert-formula.sh:** use portable sed function to make replacements ([41e10b5](41e10b5249)), closes [#192](https://github.com/saltstack-formulas/template-formula/issues/192)

### Continuous Integration

* **travis:** add quick check that `convert-formula.sh` has worked ([8312063](83120632f3))
2020-04-15 17:03:22 +00:00
Imran Iqbal
17a476638e
Merge pull request #194 from dafyddj/fix/convert-sed
fix(convert-formula.sh): use portable `sed` function to make replacements
2020-04-15 17:54:57 +01:00
Dafydd Jones
83120632f3 ci(travis): add quick check that convert-formula.sh has worked 2020-04-14 00:44:49 +01:00
Dafydd Jones
41e10b5249 fix(convert-formula.sh): use portable sed function to make replacements
* Fixes #192
2020-04-14 00:09:01 +01:00
semantic-release-bot
93af398cda chore(release): 4.0.6 [skip ci]
## [4.0.6](https://github.com/saltstack-formulas/template-formula/compare/v4.0.5...v4.0.6) (2020-04-07)

### Bug Fixes

* **running.sls:** use `watch` not `require` to ensure service restart ([3a1fc35](3a1fc35a13))

### Code Refactoring

* **libsaltcli:** use the `opts` dict throughout [skip ci] ([69b632f](69b632fbe6))

### Continuous Integration

* **kitchen+travis:** adjust matrix to add `3000` & remove `2017.7` [skip ci] ([f81c372](f81c372dfe))
* **kitchen+travis:** adjust matrix to update `3000` to `3000.1` [skip ci] ([f48a727](f48a727564))
2020-04-07 13:44:34 +00:00