template-formula/test/salt/pillar
Daniel Dehennin 7708e12923
test(pillar): use static test/salt/pillar/top.sls
The kitchen-salt provisionner have the `pillars_from_directories`
option to recusively copy directories under target pillar root.

This has 3 advantages:

- simplify `kitchen.yml`

- manage pillar assignment with standard salt targetting mechanism,
  this avoid the dedicated `gentoo` suite (it could have been done
  from `kitchen.yml` itself by the way)

- ease the test outside kitchen by running `salt-call` directly with
  `--pillar-root` like:
  ```
  salt-call --local --id test-minion.example.net \
    --file-root=template-formula/ \
    --pillar-root=template-formula/test/salt/pillar/ \
    state.show_sls TEMPLATE
  ```

* pillar.example: remove settings for testing purpose.

* test/salt/pillar/top.sls: limit `gentoo` pillars based on `os_family`
  grain.

* test/salt/pillar/defaults.sls: base pillar dedicated to tests.

* kitchen.yml (suites): remove the now useless `gentoo` suite.
  Define `pillars_from_directories` to copy them under `pillar_root`.
  Remove useless `pillars_from_files`.

* .gitlab-ci.yml: fix gentoo suite name

* .gitignore: do not ignore test pillar `top.sls`
2021-11-16 21:25:26 +00:00
..
defaults.sls test(pillar): use static test/salt/pillar/top.sls 2021-11-16 21:25:26 +00:00
define_roles.sls feat(yamllint): include for this repo and apply rules throughout 2019-08-07 18:27:31 +01:00
gentoo.sls feat: add Gentoo support 2020-10-12 07:33:44 +01:00
top.sls test(pillar): use static test/salt/pillar/top.sls 2021-11-16 21:25:26 +00:00
upstart.sls ci(kitchen+travis): fix centos6 suite and rename to upstart 2020-09-01 18:52:51 +01:00