Commit graph

754 commits

Author SHA1 Message Date
Imran Iqbal
a4b1608ab4
feat(centos-6): reshape formula and tests for this platform
* Close #104
2019-05-12 16:22:41 +01:00
semantic-release-bot
b0d6aa1f8c chore(release): 2.0.6 [skip ci]
## [2.0.6](https://github.com/saltstack-formulas/template-formula/compare/v2.0.5...v2.0.6) (2019-05-02)

### Continuous Integration

* **kitchen+travis:** use latest pre-salted images ([91ef13b](https://github.com/saltstack-formulas/template-formula/commit/91ef13b))

### Tests

* **inspec:** disable `service`-based tests for `opensuse-leap-15` ([848c2ad](https://github.com/saltstack-formulas/template-formula/commit/848c2ad))
2019-05-02 16:08:41 +00:00
Javier Bértoli
a2e4982276
Merge pull request #101 from myii/chore/use-latest-pre-salted-images
ci(kitchen+travis): use latest pre-salted images
2019-05-02 12:47:48 -03:00
Imran Iqbal
848c2ad2c7
test(inspec): disable service-based tests for opensuse-leap-15 2019-05-02 16:21:09 +01:00
Imran Iqbal
91ef13b1e1
ci(kitchen+travis): use latest pre-salted images
* Add `suse` to `inspec.yml` for `opensuse-leap-15`
2019-05-02 16:21:08 +01:00
semantic-release-bot
3a83a69198 chore(release): 2.0.5 [skip ci]
## [2.0.5](https://github.com/saltstack-formulas/template-formula/compare/v2.0.4...v2.0.5) (2019-04-30)

### Documentation

* **tofs:** remove whitespace from blank line ([0881b7d](https://github.com/saltstack-formulas/template-formula/commit/0881b7d))
2019-04-30 15:10:42 +00:00
Imran Iqbal
e6a41be2d3
Merge pull request #100 from saltstack-formulas/myii-patch-1
docs(tofs): remove whitespace from blank line
2019-04-30 15:49:30 +01:00
Imran Iqbal
0881b7daf1
docs(tofs): remove whitespace from blank line 2019-04-30 15:49:16 +01:00
semantic-release-bot
809207e7f2 chore(release): 2.0.4 [skip ci]
## [2.0.4](https://github.com/saltstack-formulas/template-formula/compare/v2.0.3...v2.0.4) (2019-04-27)

### Code Refactoring

* **map:** use `config.get` instead of `pillar.get` ([5dc0b86](https://github.com/saltstack-formulas/template-formula/commit/5dc0b86))

### Continuous Integration

* **gemfile:** update `kitchen-salt` version ([ad31c32](https://github.com/saltstack-formulas/template-formula/commit/ad31c32))
2019-04-27 08:12:06 +00:00
Imran Iqbal
24bf7d0681
Merge pull request #95 from myii/refactor/map-config-get
refactor(map): use `config.get` instead of `pillar.get`
2019-04-27 08:58:30 +01:00
Imran Iqbal
594e322471
Merge pull request #99 from myii/chore/gitignore-kitchen.local.yml
chore(gitignore): add `kitchen.local.yml`
2019-04-27 02:50:28 +01:00
Imran Iqbal
fe9eae0841
chore(gitignore): add kitchen.local.yml
* Alongside commit: 3860bf9
* Quoting from https://kitchen.ci/docs/getting-started/kitchen-yml/:
  - As of test-kitchen 1.21.0, we now prefer `kitchen.yml` over `.kitchen.yml`.
  - This preference applies to `kitchen.local.yml` as well.
  - This is backward compatible so the dot versions continue to work.
2019-04-27 02:48:21 +01:00
Imran Iqbal
dced1ebc92
Merge pull request #96 from myii/chore/update-gemfile
ci(gemfile): update `kitchen-salt` version
2019-04-25 02:42:16 +01:00
Imran Iqbal
ad31c32b06
ci(gemfile): update kitchen-salt version 2019-04-25 02:41:24 +01:00
Imran Iqbal
5dc0b86b22
refactor(map): use config.get instead of pillar.get 2019-04-25 00:02:33 +01:00
semantic-release-bot
34d235a757 chore(release): 2.0.3 [skip ci]
## [2.0.3](https://github.com/saltstack-formulas/template-formula/compare/v2.0.2...v2.0.3) (2019-04-24)

### Bug Fixes

* **comments:** explain that at least an empty dict is required ([426f955](https://github.com/saltstack-formulas/template-formula/commit/426f955)), closes [#93](https://github.com/saltstack-formulas/template-formula/issues/93)

### Continuous Integration

* **kitchen:** use pre-salted images instead ([2855ed6](https://github.com/saltstack-formulas/template-formula/commit/2855ed6))
2019-04-24 13:11:00 +00:00
Imran Iqbal
3caf138eb5
Merge pull request #94 from myii/bug/fix-yaml-comments
fix(comments): explain that at least an empty dict is required
2019-04-24 13:55:24 +01:00
Imran Iqbal
426f955a79
fix(comments): explain that at least an empty dict is required
* For all `os*map.yaml` files
* Remove redundant `or {}` from `map.jinja`
* Close #93
2019-04-24 08:25:52 +01:00
Éric Veiras Galisson
a741a473c7
Merge pull request #92 from myii/chore/use-salted-ci-images
ci(kitchen): use pre-salted images instead
2019-04-23 15:11:19 +02:00
Javier Bértoli
2855ed6cf1
ci(kitchen): use pre-salted images instead 2019-04-23 12:38:16 +01:00
semantic-release-bot
a3ebe2b26e chore(release): 2.0.2 [skip ci]
## [2.0.2](https://github.com/saltstack-formulas/template-formula/compare/v2.0.1...v2.0.2) (2019-04-22)

### Code Refactoring

* **config_clean:** remove unused import from `libtofs.jinja` ([b7cb585](https://github.com/saltstack-formulas/template-formula/commit/b7cb585))

### Continuous Integration

* **kitchen+travis:** implement new distro-python-salt_version matrix ([bd4792d](https://github.com/saltstack-formulas/template-formula/commit/bd4792d))
2019-04-22 05:04:55 +00:00
Imran Iqbal
5ffbf6b940
Merge pull request #90 from saltstack-formulas/myii-patch-1
refactor(config_clean): remove unused import from `libtofs.jinja`
2019-04-22 05:46:49 +01:00
Imran Iqbal
b7cb5857c5
refactor(config_clean): remove unused import from libtofs.jinja 2019-04-22 05:08:09 +01:00
Niels Abspoel
250a1c4d29
Merge pull request #89 from myii/feature/use-new-ci-matrix
ci(kitchen+travis): implement new distro-python-salt_version matrix
2019-04-20 14:11:10 +02:00
Imran Iqbal
bd4792d260
ci(kitchen+travis): implement new distro-python-salt_version matrix
* Based on: https://github.com/saltstack-formulas/salt-formula/pull/406
2019-04-20 10:57:33 +01:00
semantic-release-bot
0dab08d553 chore(release): 2.0.1 [skip ci]
## [2.0.1](https://github.com/saltstack-formulas/template-formula/compare/v2.0.0...v2.0.1) (2019-03-25)

### Code Refactoring

* **tofs:** ensure (v2 > v1 > default) checking for `src_files` ([3e62d7b](https://github.com/saltstack-formulas/template-formula/commit/3e62d7b))
* **tofs:** make `files_switch` macro fully portable ([a98b777](https://github.com/saltstack-formulas/template-formula/commit/a98b777))
* **tofs:** use `config` rather than `pillar` throughout ([5730e94](https://github.com/saltstack-formulas/template-formula/commit/5730e94))
2019-03-25 22:45:40 +00:00
Niels Abspoel
0d451359c4
Merge pull request #83 from myii/refactor/libtofs
refactor(tofs): update with latest changes inc. 100% portable `libtofs.jinja`
2019-03-25 23:27:28 +01:00
Imran Iqbal
3e62d7b047
refactor(tofs): ensure (v2 > v1 > default) checking for src_files 2019-03-24 03:45:36 +00:00
Imran Iqbal
5730e94d46
refactor(tofs): use config rather than pillar throughout 2019-03-24 03:44:07 +00:00
Imran Iqbal
a98b77723a
refactor(tofs): make files_switch macro fully portable
* Introduce `v1_path_prefix` parameter
2019-03-24 03:44:07 +00:00
semantic-release-bot
709d6a2294 chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/saltstack-formulas/template-formula/compare/v1.2.6...v2.0.0) (2019-03-24)

### Code Refactoring

* **tofs:** move “files_switch” macro to “libtofs.jinja” ([da7e692](https://github.com/saltstack-formulas/template-formula/commit/da7e692))

### BREAKING CHANGES

* **tofs:** every formula writer will need to change the import
to use this new version.

* template/libtofs.jinja: provides the “files_switch” macro.

* docs/TOFS_pattern.rst: update documentation to use the new path.

* template/config/clean.sls: change import from “macros.jinja” to “libtofs.jinja”.

* template/config/file.sls: ditoo.
2019-03-24 03:42:47 +00:00
Imran Iqbal
54c3cc5717
Merge pull request #79 from eole/feature/move-files_switch-to-libtofs.jinja
refactor(tofs): move “files_switch” macro to “libtofs.jinja”
2019-03-24 03:30:56 +00:00
semantic-release-bot
483ce48ae4 chore(release): 1.2.6 [skip ci]
## [1.2.6](https://github.com/saltstack-formulas/template-formula/compare/v1.2.5...v1.2.6) (2019-03-24)

### Reverts

* **kitchen+travis:** use `debian:jessie-backports` as `debian-8` ([dcd141a](https://github.com/saltstack-formulas/template-formula/commit/dcd141a)), closes [/github.com/saltstack/salt-pack/issues/657#issuecomment-474954298](https://github.com//github.com/saltstack/salt-pack/issues/657/issues/issuecomment-474954298)
2019-03-24 01:58:57 +00:00
Imran Iqbal
fd4ce6a34e
Merge pull request #82 from myii/chore/use-standard-debian-8
revert(kitchen+travis): use `debian:jessie-backports` as `debian-8`
2019-03-24 01:37:47 +00:00
Imran Iqbal
dcd141af74
revert(kitchen+travis): use debian:jessie-backports as debian-8
This reverts commit 1b9d2493c9.

* https://github.com/saltstack/salt-pack/issues/657#issuecomment-474954298
  - `python-systemd` is now available in the SaltStack repo
* Amended the commit to add: `image: debian:8`
2019-03-24 01:27:31 +00:00
semantic-release-bot
66ece768dd chore(release): 1.2.5 [skip ci]
## [1.2.5](https://github.com/saltstack-formulas/template-formula/compare/v1.2.4...v1.2.5) (2019-03-23)

### Bug Fixes

* **travis:** use version numbers in Gemfile to prevent failed builds ([35f7111](https://github.com/saltstack-formulas/template-formula/commit/35f7111))
2019-03-23 16:01:43 +00:00
Imran Iqbal
ae7af65302
Merge pull request #81 from myii/bug/fix-kitchen-failures
fix(travis): use version numbers in Gemfile to prevent failed builds
2019-03-23 15:45:22 +00:00
Imran Iqbal
35f71113cf
fix(travis): use version numbers in Gemfile to prevent failed builds
* `kitchen-salt 0.0.21` being installed instead of current latest `0.5.0`
  - Failing builds since `pillars_from_files` is not recognised
  - Deprecated `pillars-from-files` is working but not the right solution
* Reason: `test-kitchen 2.0.0` was released 3 days ago on March 20, 2019
  - `kitchen-salt 0.5.0` depends on `test-kitchen ~> 1.4`
  - `kitchen-salt 0.0.21` depends on `test-kitchen >= 0`, so gets pulled
* Remove `test-kitchen` since it is pulled automatically by the other gems
  - Allow the correct version to be installed via. dependency resolution
2019-03-23 15:42:27 +00:00
semantic-release-bot
6ceb238248 chore(release): 1.2.4 [skip ci]
## [1.2.4](https://github.com/saltstack-formulas/template-formula/compare/v1.2.3...v1.2.4) (2019-03-22)

### Code Refactoring

* **tofs:** avoid using “salt['config.get']” for formula writers ([60d43e7](https://github.com/saltstack-formulas/template-formula/commit/60d43e7))
2019-03-22 21:15:12 +00:00
Daniel Dehennin
da7e69283f refactor(tofs): move “files_switch” macro to “libtofs.jinja”
BREAKING CHANGE: every formula writer will need to change the import
to use this new version.

* template/libtofs.jinja: provides the “files_switch” macro.

* docs/TOFS_pattern.rst: update documentation to use the new path.

* template/config/clean.sls: change import from “macros.jinja” to “libtofs.jinja”.

* template/config/file.sls: ditoo.
2019-03-21 11:42:14 +01:00
Imran Iqbal
6d2140f1da
Merge pull request #77 from eole/feature/simplify-files_switch-call
refactor(tofs): avoid using “salt['config.get']” for formula writers
2019-03-21 04:16:29 +00:00
Daniel Dehennin
60d43e7fee refactor(tofs): avoid using “salt['config.get']” for formula writers
We can hide the call to “salt['config.get']” in the macro by only
asking for a “lookup key” where to lookup the list of “source_files”.

* docs/TOFS_pattern.rst (Example): document the use of the new
  optional “lookup” parameter.

* template/macros.jinja: add a new optional “lookup” parameter.
  Lookup “files override” under the
  “<tplroot>:tofs:sources_files:<lookup key>” and fallback to
  “source_files” parameter.

* template/config/file.sls (template-config-file-file-managed): use
  the new “lookup” parameter.
2019-03-14 10:14:29 +01:00
semantic-release-bot
193bba805f chore(release): 1.2.3 [skip ci]
## [1.2.3](https://github.com/saltstack-formulas/template-formula/compare/v1.2.2...v1.2.3) (2019-03-13)

### Documentation

* **tofs:** incorrect path for “source_files” lookup key ([a76f659](https://github.com/saltstack-formulas/template-formula/commit/a76f659))
2019-03-13 17:43:50 +00:00
Imran Iqbal
a01baa0516
Merge pull request #78 from eole/bugfix/tofs-doc-typo
docs(tofs): incorrect path for “source_files” lookup key
2019-03-13 17:25:28 +00:00
Daniel Dehennin
a76f659e9d docs(tofs): incorrect path for “source_files” lookup key
* docs/TOFS_pattern.rst: rename “nfs” to “ntp”.
2019-03-13 14:57:36 +01:00
semantic-release-bot
18e5a3dac1 chore(release): 1.2.2 [skip ci]
## [1.2.2](https://github.com/saltstack-formulas/template-formula/compare/v1.2.1...v1.2.2) (2019-03-09)

### Bug Fixes

* **tofs:** update use of state ID in `config` and `pillar` ([3d9a24c](https://github.com/saltstack-formulas/template-formula/commit/3d9a24c))
* **tofs:** use `source_files` instead of `files` ([5110716](https://github.com/saltstack-formulas/template-formula/commit/5110716)), closes [/freenode.logbot.info/saltstack-formulas/20190308#c2046753](https://github.com//freenode.logbot.info/saltstack-formulas/20190308/issues/c2046753)
2019-03-09 22:24:09 +00:00
Niels Abspoel
f72c621a2e
Merge pull request #76 from myii/bug/remove-dupe-files-in-tofs
fix(tofs): use `source_files` instead of `files`
2019-03-09 23:11:24 +01:00
Imran Iqbal
51107165f0
fix(tofs): use source_files instead of files
* As discussed in the Slack/IRC/Matrix room from this point forward:
  - https://freenode.logbot.info/saltstack-formulas/20190308#c2046753
2019-03-09 06:36:11 +00:00
Imran Iqbal
3d9a24c71d
fix(tofs): update use of state ID in config and pillar 2019-03-09 01:58:30 +00:00
semantic-release-bot
eab481cd4f chore(release): 1.2.1 [skip ci]
## [1.2.1](https://github.com/saltstack-formulas/template-formula/compare/v1.2.0...v1.2.1) (2019-03-07)

### Code Refactoring

* **kitchen:** `pillars-from-files` => `pillars_from_files` ([7c954a7](https://github.com/saltstack-formulas/template-formula/commit/7c954a7)), closes [/github.com/saltstack-formulas/packages-formula/pull/50#discussion_r262769817](https://github.com//github.com/saltstack-formulas/packages-formula/pull/50/issues/discussion_r262769817)

### Styles

* **map:** use `-` for each Jinja block ([64e3834](https://github.com/saltstack-formulas/template-formula/commit/64e3834))
2019-03-07 19:07:06 +00:00