https://github.com/multani/inspec-custom-resources
A set of custom resources for InSpec (libraries + associated controls)
https://github.com/multani/inspec-custom-resources
consul inspec
Last synced: 10 days ago
JSON representation
A set of custom resources for InSpec (libraries + associated controls)
- Host: GitHub
- URL: https://github.com/multani/inspec-custom-resources
- Owner: multani
- Created: 2019-01-02T22:37:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T04:18:59.000Z (over 5 years ago)
- Last Synced: 2025-01-23T02:24:47.935Z (12 months ago)
- Topics: consul, inspec
- Language: Ruby
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Custom resources for [InSpec](https://www.inspec.io/)
=====================================================
This is a work in progress to create new InSpec resources.
See [`libraries`](libraries) for the implementation of the resources,
[`controls`](controls) for an example on how the new resources can be used.
This currently provides:
* a [`consul_cluster`](libraries/consul.rb) resource, to check the configuration of
[Consul](https://consul.io) cluster.
Testing
-------
You can test the Consul resource with Docker Compose:
* Run [Ruby Bundler](https://bundler.io/): `bundle install`
* Start the Consul Docker containers: `docker-compose up -d`
* Run the InSpec profile with Bundler, which should fail: `bundle exec inspec exec .`
* Join all the Consul agents: `docker-compose exec consul0 consul join consul1 consul2`
* Run the InSpec profile again, this time it should work: `bundle exec inspec exec .`