Chef InSpec vs Serverspec
Chef InSpec
docs.chef.ioServerspec
serverspec.orgSide by side
| Figure | Chef InSpec | Serverspec |
|---|---|---|
| Price from | $4.92/mo | Free |
| Free plan | Yes | Yes |
| Free trial | Yes | — |
| Open source | Yes | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 8 | 1 |
| Spec score · Infrastructure Testing Tools | 9.4 (#1) | 7.5 (#17) |
| Installation | Chef documents native installers for Windows and Linux distributions and Habitat packages for macOS, Windows, and Linux distributions. | The site documents installing the `serverspec` Ruby gem with Bundler or `gem install serverspec`. |
| Purpose | Chef InSpec tests and audits applications and infrastructure by comparing their actual state with a desired state expressed in InSpec code. | Serverspec lets users write RSpec tests to check that servers are configured correctly. |
Plans
Chef InSpec
- FreeFree
- FreeFree
- TrialFree
- TrialFree
- Business$59 a year
- Enterprise$189 a year
- CommercialPriced on request
- Enterprise PlusPriced on request
In their own words
Chef InSpec
Chef InSpec tests and audits applications and infrastructure against a desired state described in InSpec code. Its runtime framework and rule language express compliance, security and policy requirements. Reusable profiles group controls and can include versioning, platform requirements and dependencies. Resources support testing AWS, Azure, AliCloud and GCP infrastructure, and users can create custom resources. Tests can run locally or against cloud services and infrastructure such as Linux in Docker containers. Results can be exported as JSON, HTML or plain text, or sent to Chef Automate. The kitchen-inspec verifier also runs profiles through Test Kitchen. Chef offers premium CIS- and STIG-based profiles for compliance scanning. The free tier is for non-production workloads and personal, non-commercial use; the 30-day trial is for product evaluation under non-production conditions. Commercial licensing covers production and non-production workloads, with entitlements based on purchase order. Chef InSpec 7 requires EULA acceptance, and license-key requirements depend on the distribution source. Telemetry is enabled for free and trial tiers, but not commercial users.
Serverspec
Serverspec is an open-source Ruby gem for writing RSpec tests that verify server configuration. It examines actual machine state by executing commands locally or through SSH, WinRM, and the Docker API, without requiring agent software on target servers. Checks cover packages, services, files, ports, users, Docker containers and images, Windows features, and X.509 certificates and private keys. Both RSpec should and expect syntax are supported. Serverspec can accompany Puppet, Ansible, CFEngine, Itamae, and Chef, with infrastructure-code refactoring stated as its central aim. The tutorial names Linux distributions, macOS, Windows, BSD systems, Solaris, SmartOS, and others, while noting incomplete support for some. Each suite targets one machine or Docker container, so separate RSpec commands are advised for separate targets. Install through Bundler or gem install serverspec. It is MIT licensed and maintained by Gosuke Miyashita.