Skip to content

Commit

Permalink
feat(template): review PR 238 (use pillars_from_directories, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Nov 16, 2021
1 parent b6454d7 commit c5cc52b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 47 deletions.
10 changes: 1 addition & 9 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1426,15 +1426,7 @@ ssf:
sysstat: *formula_default
systemd: *formula_default
telegraf: *formula_default
template:
<<: *formula_default
context:
<<: *context_default
inspec_suites_kitchen:
<<: *isk_default
1:
<<: *isk_suite_default
name: 'gentoo'
template: *formula_default
test: *formula_default
timezone: *formula_default
tomcat: *formula_default
Expand Down
49 changes: 11 additions & 38 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4976,7 +4976,6 @@ ssf:
repo: 'template-formula'
inspec_suites_kitchen:
0:
excludes: *platforms_os_gentoo
inspec_yml:
summary: >-
Verify that the TEMPLATE formula is setup and configured correctly
Expand All @@ -4985,51 +4984,25 @@ ssf:
- '*':
- TEMPLATE
- define_roles
pillars_from_files:
- TEMPLATE.sls: 'pillar.example'
- define_roles.sls: 'test/salt/pillar/define_roles.sls'
state_top:
- '*':
- ._mapdata
- TEMPLATE
1:
includes: *platforms_os_gentoo
provisioner:
pillars:
- '*':
- TEMPLATE
- gentoo
- define_roles
pillars_from_files:
- TEMPLATE.sls: 'pillar.example'
- gentoo.sls: 'test/salt/pillar/gentoo.sls'
- define_roles.sls: 'test/salt/pillar/define_roles.sls'
state_top:
- '*':
- ._mapdata
- TEMPLATE
verifier: *verifier_inspec_tests_default
inspec_suites_matrix:
- default
- gentoo
kitchen:
provisioner:
pillars_from_directories:
- test/salt/pillar
top_sls:
- '*':
- defaults
- 'G@os_family:Gentoo':
- gentoo
- 'os:*':
- define_roles
map_jinja:
verification:
import: ['mapdata']
version: 5
platforms_matrix:
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 0 , master, 0, default]
- [ubuntu , 0 , master, 0, default]
- [centos , 0 , master, 0, default]
- [fedora , 0 , master, 0, default]
- [opensuse/leap, 0 , master, 0, default]
- [opensuse/tmbl, 0 , master, 0, default]
- [amazonlinux , 0 , master, 0, default]
- [oraclelinux , 0 , master, 0, default]
- [arch-base , 0 , master, 0, default]
- [gentoo/stage3, 0 , master, 0, gentoo]
- [almalinux , 0 , master, 0, default]
- [rockylinux , 0 , master, 0, default]
use_libsaltcli: true
use_tofs: true
semrel_files:
Expand Down

0 comments on commit c5cc52b

Please sign in to comment.