inspec/examples/profile
2016-03-28 00:48:15 +02:00
..
controls fix errors introduced in #593 2016-03-28 00:48:15 +02:00
libraries update tests based on resource changes 2016-03-24 21:50:51 +01:00
inspec.yml use unix family for wider compatibility 2016-03-24 19:50:52 +00:00
README.md update gordon with a bit of ruby and update README 2016-03-24 21:50:47 +01:00

Example InSpec Profile

This example shows the implementation of an InSpec profile.

Verify a profile

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

$ inspec check examples/profile
Summary
-------
Location: examples/profile
Profile: profile
Controls: 3
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.

$ inspec exec examples/profile
..

Finished in 0.0025 seconds (files took 0.12449 seconds to load)
4 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.

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

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