mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Add example of corporate profile
This won't work until the git fetcher is merged. It likely also exhibits other problems related to platform support handling. Signed-off-by: Steven Danna <steve@chef.io>
This commit is contained in:
parent
df487861fe
commit
d8d53b36c1
3 changed files with 38 additions and 0 deletions
11
examples/corporate-profile/README.md
Normal file
11
examples/corporate-profile/README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# corporate-profile
|
||||||
|
|
||||||
|
The inspec.yml file in this profile shows how one can use dependencies
|
||||||
|
from non-local sources such as Git or an HTTP url. This feature can
|
||||||
|
be used to build up a environment-wide profile that is based on more
|
||||||
|
specific profiles managed by others.
|
||||||
|
|
||||||
|
# WARNING
|
||||||
|
|
||||||
|
This profile likely does not work yet. It exists as a target for
|
||||||
|
ongoing development work.
|
8
examples/corporate-profile/controls/example.rb
Normal file
8
examples/corporate-profile/controls/example.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# encoding: utf-8
|
||||||
|
# copyright: 2015, The Authors
|
||||||
|
# license: All rights reserved
|
||||||
|
include_controls 'ssh-hardening'
|
||||||
|
include_controls 'os-hardening'
|
||||||
|
include_controls 'ssl-benchmark'
|
||||||
|
include_controls 'linux'
|
||||||
|
include_controls 'windows-patch-benchmark'
|
19
examples/corporate-profile/inspec.yml
Normal file
19
examples/corporate-profile/inspec.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: corporate-profile
|
||||||
|
title: InSpec Profile
|
||||||
|
maintainer: The Authors
|
||||||
|
copyright: The Authors
|
||||||
|
copyright_email: you@example.com
|
||||||
|
license: All Rights Reserved
|
||||||
|
summary: An InSpec Compliance Profile
|
||||||
|
version: 0.1.0
|
||||||
|
depends:
|
||||||
|
- name: ssh-hardening
|
||||||
|
supermarket: hardening/ssh-hardening
|
||||||
|
- name: os-hardening
|
||||||
|
url: https://github.com/dev-sec/tests-os-hardening/archive/master.zip
|
||||||
|
- name: ssl-benchmark
|
||||||
|
git: https://github.com/dev-sec/ssl-benchmark.git
|
||||||
|
- name: windows-patch-benchmark
|
||||||
|
git: https://github.com/chris-rock/windows-patch-benchmark.git
|
||||||
|
- name: linux
|
||||||
|
compliance: base/linux
|
Loading…
Reference in a new issue