Skip to content
SPECIFICTION
Get listed

Serverspec

serverspec.org

Free plan WindowsmacOSLinuxSelf-hosted

What it is

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.

Spec sheet

Purpose
Serverspec lets users write RSpec tests to check that servers are configured correctly.Read 7 Oct 2026 · serverspec.org
Maker
The official site says the project is maintained by Gosuke Miyashita.Read 7 Oct 2026 · serverspec.org
Agentless
The site says Serverspec does not require agent software to be installed on target servers.Read 7 Oct 2026 · serverspec.org
Configuration tools
The site names Puppet, Ansible, CFEngine, and Itamae as configuration management tools it can be used with.Read 7 Oct 2026 · serverspec.org
Execution scope
The site says a test suite is meant for one machine or Docker container and advises running a separate RSpec command for each target.Read 7 Oct 2026 · serverspec.org
How it checks
It checks servers’ actual state by executing commands locally or through SSH, WinRM, and Docker API, among other methods.Read 7 Oct 2026 · serverspec.org
Infrastructure code
The site describes helping refactor infrastructure code as Serverspec’s true aim.Read 7 Oct 2026 · serverspec.org
Installation
The site documents installing the `serverspec` Ruby gem with Bundler or `gem install serverspec`.Read 7 Oct 2026 · serverspec.org
License and latest release
GitHub identifies the repository as MIT licensed and lists v2.43.0 as its latest release, dated April 24, 2025.Read 7 Oct 2026 · github.com
Maintenance
The project’s GitHub README says it accepts pull requests and disables issues.Read 7 Oct 2026 · github.com
Operating systems
The tutorial lists AIX, Arch Linux, macOS, Debian, Fedora/Red Hat/CentOS, FreeBSD, Gentoo Linux, NixOS, OpenBSD, openSUSE, Plamo Linux, SmartOS, Solaris, SUSE, Ubuntu, and Windows, while noting that not all are fully supported.Read 7 Oct 2026 · serverspec.org
Resource checks
Documented resource types include packages, services, files, ports, users, Docker containers and images, Windows features, and X.509 certificates and private keys.Read 7 Oct 2026 · serverspec.org
Test syntax
Serverspec works with both RSpec `should` and `expect` syntax.Read 7 Oct 2026 · serverspec.org

Plans and prices

Serverspec Free Open source Ruby gem · no paid plans stated Read 7 Oct 2026 · github.com

Every Serverspec plan and price →

Strong points and limits

Strong points

  • Free open-source Ruby gem
  • Agentless checks on target servers
  • Local, SSH, WinRM, and Docker execution
  • Broad documented resource checks
  • Supports should and expect syntax

Limits

  • Some listed operating systems are not fully supported
  • Each suite targets one machine or container
  • GitHub issues are disabled
  • Latest listed release is v2.43.0

Who it suits

It suits infrastructure teams that want agentless configuration and compliance checks expressed as RSpec tests. It supports local or remote execution and integration with several configuration-management tools.

Verdict

Serverspec provides agentless, RSpec-based validation across many server resources and execution methods. Its per-target test model and uneven operating-system support should shape how suites are organized.

Where Specifiction places it

Alternatives to ServerspecAll alternatives →