Skip to content

Commit

Permalink
Document input features
Browse files Browse the repository at this point in the history
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
  • Loading branch information
clintoncwolfe committed Jun 5, 2019
1 parent 0822da6 commit 600e0e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,26 +241,28 @@ suites:
compliance: base/ssh
```

### Use attributes with your inspec profiles
### Use inputs with your inspec profiles

To run a profile with attributes defined inline, you can adapt your `.kitchen.yml`:
Note: InSpec Inputs were formerly known as InSpec Attributes. As they are not related to Chef Attributes, they have been renamed to reduce confusion.

To run a profile with inputs defined inline, you can adapt your `.kitchen.yml`:

```yaml
verifier:
inspec_tests:
- path: test/integration/attributes
attributes:
inputs:
user: bob
password: secret
```

You can also define your attributes in an external file. Adapt your `.kitchen.yml` to point to that file:
You can also define your inputs in external files. Adapt your `.kitchen.yml` to point to those files:

```yaml
verifier:
inspec_tests:
- path: test/integration/attributes
attrs:
input_files:
- test/integration/profile-attribute.yml
```

Expand Down

0 comments on commit 600e0e8

Please sign in to comment.