mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
add documentation for manifest
This commit is contained in:
parent
06c1265b38
commit
c1d2970c4a
1 changed files with 34 additions and 2 deletions
|
@ -70,15 +70,47 @@ To use a profile and their mechanisms, just place the files according to the fol
|
|||
│ └── gordon_spec.rb
|
||||
├── libraries
|
||||
│ └── gordon_config.rb
|
||||
└── metadata.rb
|
||||
└── metadata.yml
|
||||
|
||||
|
||||
* `metadata.rb` - includes the profile description (required)
|
||||
* `metadata.yml` - includes the profile description (required)
|
||||
* `controls` - the directory includes all tests (required)
|
||||
* `libraries` - is an optional feature to load custom InSpec resource extensions (optional)
|
||||
* `README.md` - its best-practice to add a readme to each profile to explain its scope
|
||||
|
||||
|
||||
InSpec Profile Manifest
|
||||
-----------------------------------------------------
|
||||
|
||||
Each profile has a manifest file `metadata.yml`. It looks as follows
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
name: base/ssh
|
||||
title: Basic SSH
|
||||
maintainer: Chef Software, Inc.
|
||||
copyright: Chef Software, Inc.
|
||||
copyright_email: support@chef.io
|
||||
license: Proprietary, All rights reserved
|
||||
summary: Verify that SSH Server and SSH Client are configured securely
|
||||
version: 1.0.0
|
||||
supports:
|
||||
- linux
|
||||
|
||||
|
||||
A manifest description may contain the following values:
|
||||
|
||||
* `name` - Identifier of the profile (required)
|
||||
* `title` - Human-readable name of the profile (optional)
|
||||
* `maintainer` - Name of the profile maintainer (optional)
|
||||
* `copyright` - Copyright holder (optional)
|
||||
* `copyright_email` - Support contact for profile (optional)
|
||||
* `license` - License of the profile (optional)
|
||||
* `summary` - One-line summary of the profile (optional)
|
||||
* `description` - Description of the profile (optional)
|
||||
* `version` - Version of the profile (optional)
|
||||
|
||||
|
||||
InSpec Profile Verification
|
||||
-----------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue