Skip to content

Commit

Permalink
add attributes info to readme
Browse files Browse the repository at this point in the history
Signed-off-by: Victoria Jeffrey <[email protected]>
  • Loading branch information
Victoria Jeffrey committed Nov 4, 2016
1 parent 6388bb4 commit e84d1d1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,29 @@ suites:
compliance: base/ssh
```
### Use attributes with your inspec profiles
To run a profile with attributes defined inline, you can adapt your `.kitchen.yml`:

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

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

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

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit e84d1d1

Please sign in to comment.