inspec/lib/bundles/inspec-supermarket
Ryan Larson 0e187f6117 Feature/fix ability to pass in supermarket url (#1595)
* Enable customization of supermarket_url

It looks like this was originally supposed to work, but at some point
the default value was put in the method body rather than in the method
parameters.

This change allows you to configure the supermarket_url in test kitchen
like so:

```
verifier:
  inspec_tests:
  - name: linux-hardening
    supermarket: som3guy/apache-disa-stig
    supermarket_url: https://my.supermarket.com
```

Signed-off-by: Ryan Larson <ryan.mango.larson@gmail.com>
2017-03-29 12:42:24 -04:00
..
api.rb Feature/fix ability to pass in supermarket url (#1595) 2017-03-29 12:42:24 -04:00
cli.rb Address rubocop violations 2017-02-08 16:49:16 -06:00
README.md update readme for bundles 2016-06-29 08:14:36 +02:00
target.rb Allow supermarket:// and compliance:// in inspec.yml 2016-09-09 14:14:37 +01:00

InSpec Extension for Chef Supermarket

To use the CLI, this InSpec add-on adds the following commands:

  • $ inspec supermarket configure - configures the supermarket server
  • $ inspec supermarket search - searches for a compliance profile on supermarket
  • $ inspec supermarket exec nathenharvey/tmp-compliance-profile - extends execute to load the profile

Compliance profiles from Supermarket can be executed in two mays:

  • via supermarket exec: inspec supermarket exec nathenharvey/tmp-compliance-profile
  • via supermarket scheme: inspec exec supermarket://nathenharvey/tmp-compliance-profile

Usage

$ inspec supermarket
Commands:
  inspec supermarket exec PROFILE    # execute a Supermarket profile
  inspec supermarket help [COMMAND]  # Describe subcommands or one specific subcommand
  inspec supermarket info PROFILE    # display Supermarket profile details
  inspec supermarket profiles        # list all available profiles in Chef Supermarket

$ inspec supermarket profiles
Available profiles:
-------------------
 * nathenharvey/tmp-compliance-profile
 * hardening/os-hardening
 * hardening/ssh-hardening

$ inspec supermarket info hardening/os-hardening
name:   os-hardening
owner:  hardening
url:    https://github.com/dev-sec/tests-os-hardening

description:   Base Linux Compliance profile, used for Security + DevOps. More Information is available at http://dev-sec.io/

$ inspec exec supermarket://hardening/os-hardening
........F.F.................F......FFF.....FFFF.F........FF....FFFFFFF...FF.FFFFFF.FFFFFFFFFFF.F...

...

Finished in 3.81 seconds (files took 5.69 seconds to load)
99 examples, 40 failures