mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
20 lines
442 B
Markdown
20 lines
442 B
Markdown
|
# Example InSpec Profile
|
||
|
|
||
|
This example shows the use of InSpec [profile](../../docs/profiles.rst) inheritance.
|
||
|
|
||
|
## Verify a profile
|
||
|
|
||
|
InSpec ships with built-in features to verify a profile structure.
|
||
|
|
||
|
```bash
|
||
|
$ inspec check examples/inheritance --profiles-path examples
|
||
|
```
|
||
|
|
||
|
## Execute a profile
|
||
|
|
||
|
To run a profile on a local machine use `inspec exec /path/to/profile`.
|
||
|
|
||
|
```bash
|
||
|
$ inspec exec examples/inheritance --profiles-path examples
|
||
|
```
|