Commit graph

425 commits

Author SHA1 Message Date
Imran Iqbal
c269673295
refactor(tofs): move subcomponent definition to defaults.yaml
* Tests fail locally without modifying pillar otherwise
  - `Jinja variable 'dict object' has no attribute 'subcomponent'`
2019-08-06 11:06:24 +01:00
Niels Abspoel
a60ee2ee9a
Merge pull request #148 from myii/ci/replace-eol-pre-salted-images
ci(kitchen+travis): replace EOL pre-salted images
2019-08-06 08:59:22 +02:00
semantic-release-bot
a660762417 chore(release): 3.2.0 [skip ci]
# [3.2.0](https://github.com/saltstack-formulas/template-formula/compare/v3.1.1...v3.2.0) (2019-08-03)

### Bug Fixes

* **formula:** update to current oldest supported version of Salt ([878eca1](https://github.com/saltstack-formulas/template-formula/commit/878eca1))

### Documentation

* **libtofs:** explain usage of sub-directory for components ([42a75d9](https://github.com/saltstack-formulas/template-formula/commit/42a75d9))
* **readme:** describe the new “template.subcomponent” states ([6b595cd](https://github.com/saltstack-formulas/template-formula/commit/6b595cd))

### Features

* **sub-component:** manage a dedicated configuration file ([c4440d7](https://github.com/saltstack-formulas/template-formula/commit/c4440d7))
* **tofs:** lookup files directory in “tpldir” hierarchy ([5c495fb](https://github.com/saltstack-formulas/template-formula/commit/5c495fb))

### Tests

* **inspec:** verify subcomponent configuration file ([fd55e03](https://github.com/saltstack-formulas/template-formula/commit/fd55e03))
2019-08-03 16:12:36 +00:00
Imran Iqbal
b00b0e8021
Merge pull request #86 from eole/feature/tofs-lookup-files-in-tpldir-hierarchy
Feature/tofs lookup files in tpldir hierarchy
2019-08-03 16:40:47 +01:00
Niels Abspoel
0f25a5aeaf
Merge pull request #154 from saltstack-formulas/myii-patch-1
fix(formula): update to current oldest supported version of Salt
2019-07-31 18:36:48 +02:00
Imran Iqbal
ec03ca894c
Merge pull request #155 from myii/chore/standardise-structure
chore: use `semantic-release` cross-formula standard structure
2019-07-31 16:58:11 +01:00
Imran Iqbal
4a2e848e07 chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.4)
2019-07-31 16:56:51 +01:00
Imran Iqbal
878eca189b
fix(formula): update to current oldest supported version of Salt
* When formula conversions are performed, this line is usually unchanged
* This ensures that these conversions aren't using even older versions by default
2019-07-31 16:21:34 +01:00
Daniel Dehennin
5c495fb63a feat(tofs): lookup files directory in “tpldir” hierarchy
Without user configuration, the “libtofs.jinja” lookup the “files”
directory under “tplroot” with is the base directory of the current
formula unless the “v1_path_prefix” is set.

Now, we lookup the directory in each sub-directory from the
sub-directory of the current SLS (“tpldir”) to the top level directory
of the formula (“tplroot”).

This permit to support formula with different components, each one
providing its own “files” directory like “systemd-formula”.
2019-07-30 16:27:35 +02:00
Daniel Dehennin
c4440d7c55 feat(sub-component): manage a dedicated configuration file
* pillar.example (template.subcomponent): configurable sub-component
  destination.
  (template.tofs.source_files): override sub-component template

* template/init.sls (include): setup sub-component last.

* template/clean.sls (include): clean sub-component first.

* template/subcomponent/init.sls: include the only setup state
  “config”.

* template/subcomponent/config/init.sls: include the only config state
  “file”.

* template/subcomponent/config/file.sls: manage the sub-component
  configuration file. It requires the main component configuration.

* template/subcomponent/files/default/subcomponent-example.tmpl.jinja:
  jinja template for the sub-component.

* template/subcomponent/files/default/subcomponent-example.tmpl:
  static configuration for the sub-component.

* template/subcomponent/clean.sls: include the only cleanup state “config”.

* template/subcomponent/config/clean.sls: remove the sub-component
  configuration file.
2019-07-30 16:17:39 +02:00
Daniel Dehennin
42a75d99ee docs(libtofs): explain usage of sub-directory for components 2019-07-30 16:16:04 +02:00
Daniel Dehennin
6b595cd8ce docs(readme): describe the new “template.subcomponent” states
The subcomponent only provides a configuration file and its cleaning
state.
2019-07-30 16:13:37 +02:00
Daniel Dehennin
fd55e03692 test(inspec): verify subcomponent configuration file
* test/integration/default/controls/subcomponent_config_spec.rb: the
  subcomponent file must come from the “/subcomponent/files/” directory

* test/integration/default/controls/config_spec.rb: update to match
  the new subcomponent override.
2019-07-30 16:06:53 +02:00
Imran Iqbal
42ab22c13f
ci(kitchen+travis): replace EOL pre-salted images
* Fedora:   30 => 29 & 29 => 28 (EOL)
* OpenSuse: 15 => 42 (EOL)
  - Use `dist: xenial` to prevent failures

Squashed commits:

* ci(kitchen+travis): add new `amazonlinux-2` pre-salted images
* ci(kitchen+travis): use new `debian-10` pre-salted image for `develop`
2019-07-30 09:20:30 +01:00
Imran Iqbal
9b98b3eb6c
Merge pull request #153 from myii/chore/standardise-structure
chore: use `semantic-release` cross-formula standard structure
2019-07-30 08:57:35 +01:00
Imran Iqbal
4a71611c0d chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.3)
2019-07-30 08:49:56 +01:00
semantic-release-bot
10e23bc219 chore(release): 3.1.1 [skip ci]
## [3.1.1](https://github.com/saltstack-formulas/template-formula/compare/v3.1.0...v3.1.1) (2019-07-25)

### Bug Fixes

* **tofs:** prepend the config-based `source_files` to the default ([3483e76](https://github.com/saltstack-formulas/template-formula/commit/3483e76)), closes [/github.com/saltstack-formulas/nginx-formula/pull/247#issuecomment-514262549](https://github.com//github.com/saltstack-formulas/nginx-formula/pull/247/issues/issuecomment-514262549) [#151](https://github.com/saltstack-formulas/template-formula/issues/151)

### Documentation

* **tofs:** ensure merged will all recent changes ([6a614d9](https://github.com/saltstack-formulas/template-formula/commit/6a614d9))
* **tofs:** update from `nginx-formula` ([23a221e](https://github.com/saltstack-formulas/template-formula/commit/23a221e)), closes [/github.com/saltstack-formulas/nginx-formula/pull/238#discussion_r289124365](https://github.com//github.com/saltstack-formulas/nginx-formula/pull/238/issues/discussion_r289124365)
2019-07-25 07:55:47 +00:00
Imran Iqbal
6a614d967f
docs(tofs): ensure merged will all recent changes 2019-07-25 08:44:25 +01:00
Imran Iqbal
23a221ef01
docs(tofs): update from nginx-formula
* https://github.com/saltstack-formulas/nginx-formula/pull/238#discussion_r289124365
2019-07-25 08:39:41 +01:00
Daniel
3425b5a6fc
Merge pull request #152 from myii/bug/append-tofs-source-files
fix(tofs): prepend the config-based `source_files` to the default
2019-07-25 09:27:09 +02:00
Imran Iqbal
3483e760bf
fix(tofs): prepend the config-based source_files to the default
* https://github.com/saltstack-formulas/nginx-formula/pull/247#issuecomment-514262549
  - The main issue is that the `nginx-formula` has dynamic values being
    used as the default `source_files` -- there is no way to provide
    this from the pillar/config in a sensible fashion
  - Prepending to this default (rather than overriding it) resolves this
    problem entirely, without adding excessive entries to the `source`
* Closes #151
2019-07-25 02:42:05 +01:00
semantic-release-bot
d05d444148 chore(release): 3.1.0 [skip ci]
# [3.1.0](https://github.com/saltstack-formulas/template-formula/compare/v3.0.9...v3.1.0) (2019-07-24)

### Bug Fixes

* **grain:** fix grain value ([26edfa0](https://github.com/saltstack-formulas/template-formula/commit/26edfa0))

### Documentation

* **map:** update comments in `os*.yaml` after adding `osarchmap` ([d71a258](https://github.com/saltstack-formulas/template-formula/commit/d71a258))

### Features

* **mapping:** introduce osarchmap per issue [#13](https://github.com/saltstack-formulas/template-formula/issues/13) ([41ac40d](https://github.com/saltstack-formulas/template-formula/commit/41ac40d))

### Tests

* **osarch:** add unit test for osarch ([1be2052](https://github.com/saltstack-formulas/template-formula/commit/1be2052))
2019-07-24 22:57:28 +00:00
Imran Iqbal
d4f8a747b3
Merge pull request #144 from noelmcloughlin/osarch
feat(mapping): introduce osarchmap per issue #142
2019-07-24 23:25:41 +01:00
Imran Iqbal
d71a258a2f
docs(map): update comments in os*.yaml after adding osarchmap 2019-07-24 23:12:32 +01:00
N
1be20524cf
test(osarch): add unit test for osarch 2019-07-24 23:12:17 +01:00
N
26edfa08c6
fix(grain): fix grain value 2019-07-24 23:11:47 +01:00
N
41ac40d958
feat(mapping): introduce osarchmap per issue #13 2019-07-24 23:11:47 +01:00
semantic-release-bot
72ea25fdd3 chore(release): 3.0.9 [skip ci]
## [3.0.9](https://github.com/saltstack-formulas/template-formula/compare/v3.0.8...v3.0.9) (2019-07-24)

### Bug Fixes

* **libtofs:** don't crash if “tofs.files_switch” lookup a list ([0979d35](https://github.com/saltstack-formulas/template-formula/commit/0979d35))

### Documentation

* **contributing:** add recent `semantic-release` formula ([f9def86](https://github.com/saltstack-formulas/template-formula/commit/f9def86))
* **contributing:** add recent `semantic-release` formula ([ed8c55a](https://github.com/saltstack-formulas/template-formula/commit/ed8c55a))
* **contributing:** add recent `semantic-release` formulas ([57d0b85](https://github.com/saltstack-formulas/template-formula/commit/57d0b85))

### Tests

* **libtofs:** “tofs.files_switch” lookup can return a list ([13f1728](https://github.com/saltstack-formulas/template-formula/commit/13f1728))
2019-07-24 22:00:26 +00:00
Imran Iqbal
4b2d9e4d29
Merge pull request #150 from eole/bugfix/libtofs-crash-on-files_switch-lookup-list
Bugfix/libtofs crash on files switch lookup list
2019-07-24 11:24:58 +01:00
Daniel Dehennin
0979d359fd fix(libtofs): don't crash if “tofs.files_switch” lookup a list
We need to process all elements when the “config.get” lookup of
“tofs.files_switch” return a list.

* template/libtofs.jinja: force the output of the lookup to be a list.
2019-07-24 12:14:33 +02:00
Daniel Dehennin
13f1728c27 test(libtofs): “tofs.files_switch” lookup can return a list
We need to verify that “libtofs” works when the “tofs.files_switch”
lookup return a list instead of a single element.

* kitchen.yml (provisioner): copy tests specific pillars into the test
  environment.

* pillar.example (template.tofs.files_switch): lookup for “roles” at
  the end.

* test/salt/pillar/test.sls (roles): list of roles to apply during
  tests.

* test/integration/default/controls/config_spec.rb: add “roles” to the
  list of “tofs.files_switch” items to verify.
2019-07-24 12:13:53 +02:00
Imran Iqbal
57d0b8507d
docs(contributing): add recent semantic-release formulas 2019-07-20 00:32:56 +01:00
Imran Iqbal
f9def8661c
docs(contributing): add recent semantic-release formula 2019-07-15 21:10:46 +01:00
Imran Iqbal
ed8c55a22a
docs(contributing): add recent semantic-release formula
* Also add `WIP` formulas
2019-07-12 19:16:01 +01:00
semantic-release-bot
f2c6454c2a chore(release): 3.0.8 [skip ci]
## [3.0.8](https://github.com/saltstack-formulas/template-formula/compare/v3.0.7...v3.0.8) (2019-07-08)

### Documentation

* **contributing:** add template-formula to `semantic-release` formulas ([87e4ebc](https://github.com/saltstack-formulas/template-formula/commit/87e4ebc))
2019-07-08 06:22:13 +00:00
Imran Iqbal
87e4ebc3ef
docs(contributing): add template-formula to semantic-release formulas 2019-07-08 07:14:16 +01:00
semantic-release-bot
cf7d7c0fa3 chore(release): 3.0.7 [skip ci]
## [3.0.7](https://github.com/saltstack-formulas/template-formula/compare/v3.0.6...v3.0.7) (2019-07-04)

### Documentation

* **contributing:** add recent `semantic-release` formula ([c679cb5](https://github.com/saltstack-formulas/template-formula/commit/c679cb5))
2019-07-04 18:58:19 +00:00
Imran Iqbal
c679cb595f
docs(contributing): add recent semantic-release formula 2019-07-04 19:48:21 +01:00
semantic-release-bot
53263283a7 chore(release): 3.0.6 [skip ci]
## [3.0.6](https://github.com/saltstack-formulas/template-formula/compare/v3.0.5...v3.0.6) (2019-06-28)

### Code Refactoring

* **string:** remove capitalisation from 'template' string ([7062210](https://github.com/saltstack-formulas/template-formula/commit/7062210))
2019-06-28 14:23:51 +00:00
Imran Iqbal
7410c62216
Merge pull request #140 from noelmcloughlin/lowercaseT
refactor(string): remove capitalisation from 'template' string
2019-06-28 15:05:21 +01:00
N
706221099d
refactor(string): remove capitalisation from 'template' string 2019-06-28 10:47:57 +01:00
semantic-release-bot
4890b4af7f chore(release): 3.0.5 [skip ci]
## [3.0.5](https://github.com/saltstack-formulas/template-formula/compare/v3.0.4...v3.0.5) (2019-06-28)

### Documentation

* **contributing:** add recent `semantic-release` formula ([fc50a9e](https://github.com/saltstack-formulas/template-formula/commit/fc50a9e))
2019-06-28 07:13:30 +00:00
Imran Iqbal
fc50a9e47e
docs(contributing): add recent semantic-release formula 2019-06-28 08:03:47 +01:00
semantic-release-bot
5b99d99607 chore(release): 3.0.4 [skip ci]
## [3.0.4](https://github.com/saltstack-formulas/template-formula/compare/v3.0.3...v3.0.4) (2019-06-27)

### Documentation

* **contributing:** add recent `semantic-release` formulas ([22052fc](https://github.com/saltstack-formulas/template-formula/commit/22052fc))
2019-06-27 12:59:57 +00:00
Imran Iqbal
22052fcdee
docs(contributing): add recent semantic-release formulas 2019-06-27 13:49:56 +01:00
semantic-release-bot
13a4f29286 chore(release): 3.0.3 [skip ci]
## [3.0.3](https://github.com/saltstack-formulas/template-formula/compare/v3.0.2...v3.0.3) (2019-06-25)

### Documentation

* **contributing:** add recent `semantic-release` formula ([7f56237](https://github.com/saltstack-formulas/template-formula/commit/7f56237))
2019-06-25 12:42:19 +00:00
Éric Veiras Galisson
7f56237acb docs(contributing): add recent semantic-release formula
* `logrotate-formula`
2019-06-25 13:20:34 +01:00
semantic-release-bot
8c7229dd2b chore(release): 3.0.2 [skip ci]
## [3.0.2](https://github.com/saltstack-formulas/template-formula/compare/v3.0.1...v3.0.2) (2019-06-20)

### Documentation

* **contributing:** add recent `semantic-release` formulas ([461c7a5](https://github.com/saltstack-formulas/template-formula/commit/461c7a5))
2019-06-20 15:51:18 +00:00
Éric Veiras Galisson
461c7a571b docs(contributing): add recent semantic-release formulas
* postfix-formula is now compatible with semantic-release
* sudoers-formula is now compatible with semantic-release
2019-06-20 16:38:45 +01:00
semantic-release-bot
a2dd5684bb chore(release): 3.0.1 [skip ci]
## [3.0.1](https://github.com/saltstack-formulas/template-formula/compare/v3.0.0...v3.0.1) (2019-06-16)

### Tests

* **inspec:** readme for default profile & os-name depreciated ([3fa7bce](https://github.com/saltstack-formulas/template-formula/commit/3fa7bce))
2019-06-16 23:19:33 +00:00