Saltstack Official Salt Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README.md 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # InSpec Profile: `v201707-py2`
  2. This shows the implementation of the `v201707-py2` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
  3. ## Verify a profile
  4. InSpec ships with built-in features to verify a profile structure.
  5. ```bash
  6. $ inspec check v201707-py2
  7. Summary
  8. -------
  9. Location: v201707-py2
  10. Profile: profile
  11. Controls: 4
  12. Timestamp: 2019-06-24T23:09:01+00:00
  13. Valid: true
  14. Errors
  15. ------
  16. Warnings
  17. --------
  18. ```
  19. ## Execute a profile
  20. To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.
  21. ```bash
  22. $ inspec exec v201707-py2
  23. ..
  24. Finished in 0.0025 seconds (files took 0.12449 seconds to load)
  25. 8 examples, 0 failures
  26. ```
  27. ## Execute a specific control from a profile
  28. To run one control from the profile use `inspec exec /path/to/profile --controls name`.
  29. ```bash
  30. $ inspec exec v201707-py2 --controls package
  31. .
  32. Finished in 0.0025 seconds (files took 0.12449 seconds to load)
  33. 1 examples, 0 failures
  34. ```
  35. See an [example control here](https://github.com/inspec/inspec/blob/master/examples/profile/controls/example.rb).