Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sudoers): verify map.jinja using InSpec #245

Merged
merged 2 commits into from
Aug 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length rule:quoted-strings
title: "chore: standardise structure"
body: '* Checked using https://github.com/myii/ssf-formula/pull/246'
title: "ci(kitchen+travis): use latest pre-salted images"
body: '* Automated using https://github.com/myii/ssf-formula/pull/245'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -802,7 +802,15 @@ ssf:
stack: *formula_default
strongswan: *formula_default
stunnel: *formula_default
sudoers: *formula_default
sudoers:
<<: *formula_default
context:
<<: *context_default
inspec_suites_kitchen:
<<: *isk_default
1:
<<: *isk_suite_default
name: 'share'
suricata: *formula_default
sysctl: *formula_default
syslog-ng: *formula_default
Expand Down
1 change: 1 addition & 0 deletions ssf/files/tofs_sudoers-formula/inspec/README.md
9 changes: 9 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3905,6 +3905,7 @@ ssf:
inspec_suites_kitchen:
0:
inspec_yml:
depends: *depends_on_suite_share
summary: >-
Verify that the sudoers formula is setup and configured correctly
provisioner:
Expand All @@ -3917,8 +3918,16 @@ ssf:
- .sls: 'test/salt/pillar/default.sls'
state_top:
- '*':
- ._mapdata
- .
- .included
1:
includes: *includes_NONE
inspec_yml:
summary: >-
shared resources
platforms: *platforms_new
platforms_matrix: *platforms_matrix_new_mainly_master_images
semrel_files: *semrel_files_default
suricata:
context:
Expand Down