Sha256: 8c55d9aa24ac252849ba70861cfc352ae411a753d06d3c19d2668bd042dccaf2

Contents?: true

Size: 984 Bytes

Versions: 6

Compression:

Stored size: 984 Bytes

Contents

# Example InSpec Profile

This example shows the implementation of an InSpec [profile](../../docs/profiles.md).

## Verify a profile

InSpec ships with built-in features to verify a profile structure.

```bash
$ inspec check examples/profile
Summary
-------
Location: examples/profile
Profile: profile
Controls: 4
Timestamp: 2016-03-24T16:20:21+00:00
Valid: true

Errors
------

Warnings
--------
```

## Execute a profile

To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.

```bash
$ inspec exec examples/profile
..

Finished in 0.0025 seconds (files took 0.12449 seconds to load)
8 examples, 0 failures
```

## Execute a specific control from a profile

To run one control from the profile use `inspec exec /path/to/profile --controls name`.

```bash
$ inspec exec examples/profile --controls tmp-1.0
.

Finished in 0.0025 seconds (files took 0.12449 seconds to load)
1 examples, 0 failures
```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inspec-2.1.81 examples/profile/README.md
inspec-2.1.21 examples/profile/README.md
inspec-2.1.10 examples/profile/README.md
inspec-2.0.32 examples/profile/README.md
inspec-2.0.17 examples/profile/README.md
inspec-1.51.15 examples/profile/README.md