Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ``` * test/salt/pillar/top.sls: limit `gentoo` pillars based on `os_family` grain. * kitchen.yml (suites): remove the now useless `gentoo` suite. Define an empty required `pillars` to not override static `top.sls`. Define `pillars_from_directories` to copy them under `pillar_root`.
- Loading branch information