inspec/examples/profile
2016-03-18 01:42:26 +01:00
..
controls feature: add tags and refs 2016-03-18 01:42:26 +01:00
libraries feature: add example profile 2015-12-28 12:53:42 +01:00
inspec.yml add supports keyword to profiles 2015-12-31 17:54:13 +01:00
README.md add doc links 2016-01-25 12:44:48 -05: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
I, [2015-11-21T12:44:50.851137 #20661]  INFO -- : Checking profile in examples/profile
I, [2015-11-21T12:44:50.851216 #20661]  INFO -- : Metadata OK.
D, [2015-11-21T12:44:50.851239 #20661] DEBUG -- : Found 2 rules.
D, [2015-11-21T12:44:50.851251 #20661] DEBUG -- : Verify all rules in  examples/profile/controls/example_spec.rb
D, [2015-11-21T12:44:50.851263 #20661] DEBUG -- : Verify all rules in  examples/profile/controls/gordon_spec.rb
I, [2015-11-21T12:44:50.851317 #20661]  INFO -- : Rule definitions OK.

Execute a profile

To run a profile 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)
2 examples, 0 failures