Skip to main content

Supported resources

Chef Infra Client and Chef InSpec both use resources as their core building block, but for different purposes. A Chef Infra Client resource declares the desired state of part of a system—a package, service, file, or user—and Chef Infra Client configures the system to match. A Chef InSpec resource inspects part of a system so you can write compliance and security tests for its actual state.

This page is the single catalog of every resource across both products. Use it to discover which resources exist, see at a glance whether a resource is available in Chef Infra Client, Chef InSpec, or both, and go to each product’s authoritative documentation.

For the resources introduced in a specific release, see that version’s documentation. This page lists the complete catalog and doesn’t replace the version-specific resource references:

The following sections list the resources supported by both products, then the complete catalog, and finally the Chef InSpec resource packs. As of Chef InSpec 7, cloud and platform resources—such as those for Amazon Web Services, Microsoft Azure, and Google Cloud Platform—moved out of Chef InSpec core into separate resource packs, so this page groups them by pack rather than listing each resource individually.

Resources supported by both products

The following 16 resources are available in both Chef Infra Client and Chef InSpec. Chef Infra Client resources configure system state; Chef InSpec resources audit it. Select a checkmark to open that product's resource documentation.

ResourceChef Infra ClientChef InSpecDescription
bashUse the bash resource to execute scripts using the Bash interpreter.
chocolatey_packageUse the chocolatey_package resource to manage packages using the Chocolatey package manager on the Microsoft Windows platform.
cronUse the cron resource to manage cron entries for time-based job scheduling.
directoryUse the directory resource to manage a directory, which is a hierarchy of folders that comprises all of the information stored on a computer.
fileUse the file resource to manage files directly on a node.
groupUse the group resource to manage a local group.
kernel_moduleUse the kernel_module resource to manage kernel modules on Linux systems.
mountUse the mount resource to manage a mounted file system.
packageUse the package resource to manage packages.
registry_keyUse the registry_key resource to create and delete registry keys in Microsoft Windows.
serviceUse the service resource to manage a service.
timezoneUse the timezone resource to change the system timezone on Windows, Linux, and macOS hosts.
userUse the user resource to add users, update existing users, remove users, and to lock/unlock user passwords.
windows_featureUse the windows_feature resource to add, remove or entirely delete Windows features and roles.
windows_firewall_ruleUse the windows_firewall_rule resource to create, change or remove Windows firewall rules.
windows_taskUse the windows_task resource to create, delete or run a Windows scheduled task.

All resources

The complete catalog of Chef Infra Client and Chef InSpec resources. A checkmark links to that product's authoritative resource documentation.

ResourceChef Infra ClientChef InSpecDescription
aide_confUse the aide_conf Chef InSpec audit resource to test the rules established for the file integrity tool AIDE.
alternatives 16.0Use the alternatives resource to configure command alternatives in Linux using the alternatives or update-alternatives packages.
apacheUse the apache Chef InSpec audit resource to test the state of the Apache server on Linux/Unix systems.
apache_confUse the apache_conf Chef InSpec audit resource to test the configuration settings for Apache.
aptUse the apt Chef InSpec audit resource to verify Apt repositories on the Debian and Ubuntu platforms, and also PPA repositories on the Ubuntu platform.
apt_packageUse the apt_package resource to manage packages on Debian, Ubuntu, and other platforms that use the APT package system.
apt_preference 13.3Use the apt_preference resource to create APT preference files.
apt_repository 12.9Use the apt_repository resource to specify additional APT repositories.
apt_update 12.7Use the apt_update resource to manage APT repository updates on Debian and Ubuntu platforms.
archive_file 15.0Use the archive_file resource to extract archive files to disk.
audit_policyUse the audit_policy Chef InSpec audit resource to test auditing policies on the Windows platform.
auditdUse the auditd Chef InSpec audit resource to test the rules for logging that exist on the system.
auditd_confUse the auditd_conf Chef InSpec audit resource to test the configuration settings for the audit daemon.
bashUse the bash resource to execute scripts using the Bash interpreter.
batchUse the batch resource to execute a batch script using the cmd.exe interpreter on Windows.
bff_packageUse the bff_package resource to manage packages for the AIX platform using the installp utility.
bondUse the bond Chef InSpec audit resource to test a logical, bonded network interface (i.e.
breakpoint 12.0Use the breakpoint resource to add breakpoints to recipes.
bridgeUse the bridge Chef InSpec audit resource to test basic network bridge properties, such as name, if an interface is defined, and the associations for any defined interface.
bsd_serviceUse the bsd_service Chef InSpec audit resource to test a service using a Berkeley OS-style init on the FreeBSD platform.
build_essential 14.0Use the build_essential resource to install the packages required for compiling C software from source.
cab_package 12.15Use the cab_package resource to install or remove Microsoft Windows cabinet (.cab) packages.
cassandradb_confUse the cassandradb_conf Chef InSpec audit resource to test the configuration of a Cassandra database, which is typically located at $CASSANDRA_HOME/cassandra.yaml or $CASSANDRA_HOME\conf\cassandra.yaml depending upon the platform.
cassandradb_sessionUse the cassandradb_session Chef InSpec audit resource to test Cassandra Query Language (CQL) commands run against a Cassandra database.
cgroupUse the cgroup Chef InSpec audit resource to test the different parameters values of the control group (cgroup) resource controllers.
chef_aclUse the chef_acl resource to interact with access control lists (ACLs) that exist on the Chef Infra Server.
chef_clientUse the chef_client resource to create clients on your Chef Infra Server from within Chef Infra cookbook code.
chef_client_config 16.6Use the chef_client_config resource to create a client.rb file in the Chef Infra Client configuration directory.
chef_client_cron 16.0Use the chef_client_cron resource to setup the Chef Infra Client to run as a cron job.
chef_client_hab_ca_cert 19.1Use the chef_client_hab_ca_cert resource to add certificates to the Habitat Chef Infra Client’s CA bundle.
chef_client_launchd 16.5Use the chef_client_launchd resource to configure the Chef Infra Client to run on a schedule on macOS systems.
chef_client_scheduled_task 16.0Use the chef_client_scheduled_task resource to setup the Chef Infra Client to run as a Windows scheduled task.
chef_client_systemd_timer 16.0Use the chef_client_systemd_timer resource to setup the Chef Infra Client to run as a systemd timer.
chef_client_trusted_certificate 16.5Use the chef_client_trusted_certificate resource to add certificates to Chef Infra Client’s trusted certificate directory.
chef_containerUse the chef_container resource to interact with container objects that exist on the Chef Infra Server.
chef_data_bagUse the chef_data_bag resource to manage data bags.
chef_data_bag_itemUse the chef_data_bag_item resource to manage data bag items.
chef_environmentUse the chef_environment resource to manage environments.
chef_gemUse the chef_gem resource to install a gem only for the instance of Ruby that is dedicated to the Chef Infra Client.
chef_groupUse the chef_group resource to interact with group objects that exist on the Chef server.
chef_handler 14.0Use the chef_handler resource to enable handlers during a Chef Infra Client run.
chef_nodeUse the chef_node resource to manage nodes.
chef_organizationUse the chef_organization resource to interact with organization objects that exist on the Chef Infra Server.
chef_roleUse the chef_role resource to manage roles.
chef_sleep 15.5Use the chef_sleep resource to pause (sleep) for a number of seconds during a Chef Infra Client run.
chef_userUse the chef_user resource to manage users.
chef_vault_secret 16.0Use the chef_vault_secret resource to store secrets in Chef Vault items.
chocolatey_config 14.3Use the chocolatey_config resource to add or remove Chocolatey configuration keys.
chocolatey_feature 15.1Use the chocolatey_feature resource to enable and disable Chocolatey features.
chocolatey_installer 18.3Use the chocolatey_installer resource to install the Chocolatey package manager.
chocolatey_package 12.7Use the chocolatey_package resource to manage packages using the Chocolatey package manager on the Microsoft Windows platform.
chocolatey_source 14.3Use the chocolatey_source resource to add, remove, enable, or disable Chocolatey sources.
chrony_confUse the chrony_conf Chef InSpec audit resource to test the synchronization settings defined in the chrony.conf file.
commandUse the command Chef InSpec audit resource to test an arbitrary command that is run on the system.
cookbook_fileDuring a Chef Infra Client run, the checksum for each local file is calculated and then compared against the checksum for the same file as it currently exists in the cookbook on the Chef Infra Server.
cpanUse the cpan Chef InSpec audit resource to test Perl modules that are installed by system packages or the CPAN installer.
cranUse the cran Chef InSpec audit resource to test R modules that are installed from CRAN package repository.
cronUse the cron resource to manage cron entries for time-based job scheduling.
cron_access 14.4Use the cron_access resource to manage cron’s cron.allow and cron.deny files.
cron_d 14.4Use the cron_d resource to manage cron job files in the /etc/cron.d directory.
crontabUse the crontab Chef InSpec audit resource to test the crontab entries for a particular user on the system.
cshUse the csh resource to execute scripts using the csh interpreter.
csvUse the csv Chef InSpec audit resource to test configuration data in a CSV file.
default_gatewayUse the default_gateway Chef InSpec audit resource to test the assigned IP address and interface for the default route.
dh_paramsUse the dh_params Chef InSpec audit resource to test Diffie-Hellman (DH) parameters.
directoryUse the directory resource to manage a directory, which is a hierarchy of folders that comprises all of the information stored on a computer.
dmg_package 14.0Use the dmg_package resource to install a package from a .dmg file.
dnf_package 12.18Use the dnf_package resource to install, upgrade, and remove packages with DNF for Fedora and RHEL 8+.
dpkg_packageUse the dpkg_package resource to manage packages for the dpkg platform.
dsc_resource 12.2The dsc_resource resource allows any DSC resource to be used in a recipe, as well as any custom resources that have been added to your Windows PowerShell environment.
dsc_scriptMany DSC resources are comparable to built-in Chef Infra Client resources.
etc_fstabUse the etc_fstab Chef InSpec audit resource to test information about all partitions and storage devices on a Linux system.
etc_groupUse the etc_group Chef InSpec audit resource to test groups that are defined on Linux and Unix platforms.
etc_hostsUse the etc_hosts Chef InSpec audit resource to test rules set to match IP addresses with hostnames.
etc_hosts_allowUse the etc_hosts_allow Chef InSpec audit resource to test rules defined for accepting daemon and client traffic in the '/etc/hosts.allow' file.
etc_hosts_denyUse the etc_hosts_deny Chef InSpec audit resource to test rules for rejecting daemon and client traffic defined in /etc/hosts.deny.
executeUse the execute resource to execute a single command.
fileUse the file resource to manage files directly on a node.
filesystemUse the filesystem Chef InSpec resource to audit filesystem disk space usage.
firewalldUse the firewalld Chef InSpec audit resource to test that firewalld is configured to allow and deny access to specific hosts, services and ports on a system.
freebsd_packageUse the freebsd_package resource to manage packages for the FreeBSD platform.
gemUse the gem Chef InSpec audit resource to test if a global Gem package is installed.
gem_packageUse the gem_package resource to manage gem packages that are only included in recipes.
gitUse the git resource to manage source control resources that exist in a git repository.
groupUse the group resource to manage a local group.
groupsUse the groups Chef InSpec audit resource to test multiple groups on the system.
grub_confGrub is a boot loader on the Linux platform used to load and then transfer control to an operating system kernel, after which that kernel initializes the rest of the operating system.
habitat_config 17.3Use the habitat_config resource to apply a configuration to a Chef Habitat service.
habitat_install 17.3Use the habitat_install resource to install Chef Habitat.
habitat_package 17.3Use the habitat_package to install or remove Chef Habitat packages from Habitat Builder.
habitat_service 17.3Use the habitat_service resource to manage Chef Habitat services.
habitat_sup 17.3Use the habitat_sup resource to runs a Chef Habitat supervisor for one or more Chef Habitat services.
habitat_user_toml 17.3Use the habitat_user_toml to template a user.toml for Chef Habitat services.
homebrew_cask 14.0Use the homebrew_cask resource to install binaries distributed via the Homebrew package manager.
homebrew_package 12.0Use the homebrew_package resource to manage packages for the macOS platform.
homebrew_tap 14.0Use the homebrew_tap resource to add additional formula repositories to the Homebrew package manager.
homebrew_update 16.2Use the homebrew_update resource to manage Homebrew repository updates on macOS.
hostUse the host Chef InSpec audit resource to test the specific host name and its availability.
hostname 14.0Use the hostname resource to set the system’s hostname, configure hostname and hosts config file, and re-run the Ohai hostname plugin so the hostname will be available in subsequent cookbooks.
httpUse the http Chef InSpec audit resource to test an http endpoint.
http_requestUse the http_request resource to send an HTTP request (GET, PUT, POST, DELETE, HEAD, or OPTIONS) with an arbitrary message.
ifconfigUse the ifconfig resource to manage interfaces on Unix and Linux systems.
iis_appUse the iis_app Chef InSpec audit resource to test the state of IIS on Windows Server 2012 (and later).
iis_siteUse the iis_site Chef InSpec audit resource to test the state of IIS on Windows Server 2012 (and later).
inetd_confUse the inetd_conf Chef InSpec audit resource to test if a service is listed in the inetd.conf file on Linux and Unix platforms.
iniUse the ini Chef InSpec audit resource to test settings in an INI file.
inspec_input 17.5Use the inspec_input resource to add an input to the Compliance Phase.
inspec_waiver 17.5Use the inspec_waiver resource to add a waiver to the Compliance Phase.
inspec_waiver_file_entry 17.1Use the inspec_waiver_file_entry resource to add or remove entries from an InSpec waiver file.
interfaceUse the interface Chef InSpec audit resource to test basic network adapter properties, such as name, status, IP addresses, and link speed (in MB/sec).
interfacesUse the interfaces Chef InSpec audit resource to test the properties of multiple network interfaces on the system.
ip6tablesUse the ip6tables Chef InSpec audit resource to test rules that are defined in ip6tables, which maintains tables of IP packet filtering rules for IPv6.
ipfilterUse the ipfilter Chef InSpec audit resource to test rules defined for ipfilter.
ipnatUse the ipnat Chef InSpec audit resource to test rules that are defined for IP NAT.
ips_packageUse the ips_package resource to manage packages (using Image Packaging System (IPS)) on the Solaris 11 platform.
iptablesUse the iptables Chef InSpec audit resource to test rules that are defined in iptables, which maintains tables of IP packet filtering rules.
jsonUse the json Chef InSpec audit resource to test data in a JSON file.
kernel_module 14.3Use the kernel_module resource to manage kernel modules on Linux systems.
kernel_parameterUse the kernel_parameter Chef InSpec audit resource to test kernel parameters on Linux platforms.
kernel_parametersUse the kernel_parameters Chef InSpec audit resource to test multiple kernel parameters on Linux platforms.
key_rsaUse the key_rsa Chef InSpec audit resource to test RSA public/private keypairs.
kshUse the ksh resource to execute scripts using the Korn shell (ksh) interpreter.
launchd 12.8Use the launchd resource to manage system-wide services (daemons) and per-user services (agents) on the macOS platform.
launchd_serviceUse the launchd_service Chef InSpec audit resource to test a service using Launchd.
limits_confUse the limits_conf Chef InSpec audit resource to test configuration settings in the /etc/security/limits.conf file.
linux_audit_systemUse the linux_audit_system Chef InSpec audit resource to test the configuration of Linux audit system.
locale 14.5Use the locale resource to set the system’s locale on Debian and Windows systems.
logUse the log resource to create log entries.
login_defsUse the login_defs Chef InSpec audit resource to test configuration settings in the /etc/login.defs file.
lxcUse the lxc Chef InSpec audit resource to test the information about Linux containers.
macos_pkg 18.1Use the macos_pkg resource to install a macOS .pkg file, optionally downloading it from a remote source.
macos_userdefaults 14.0Use the macos_userdefaults resource to manage the macOS user defaults system.
macosx_serviceUse the macosx_service resource to manage services on the macOS platform.
macports_packageUse the macports_package resource to manage packages for the macOS platform using the MacPorts package management system.
mail_aliasUse the mail_alias Chef InSpec audit resource to test the mail alias present in the aliases file.
mdadmUse the mdadm resource to manage RAID devices in a Linux environment using the mdadm utility.
mountUse the mount resource to manage a mounted file system.
mssql_sessionUse the mssql_session Chef InSpec audit resource to test SQL commands run against a Microsoft SQL database.
mssql_sys_confUse the mssql_sys_conf Chef InSpec audit resource to test the configuration of a Microsoft SQL Server database.
msu_package 12.17Use the msu_package resource to install Microsoft Update(MSU) packages on Microsoft Windows machines.
mysql_confUse the mysql_conf Chef InSpec audit resource to test the contents of the configuration file for MySQL, typically located at /etc/mysql/my.cnf or /etc/my.cnf.
mysql_sessionUse the mysql_session Chef InSpec audit resource to test SQL commands run against a MySQL database.
nftablesUse the nftables Chef InSpec audit resource to test rules and sets that are defined using nftables, which maintains tables of IP packet filtering rules.
nginxUse the nginx Chef InSpec audit resource to test the fields and validity of nginx.
nginx_confUse the nginx_conf Chef InSpec resource to test configuration data for the NGINX server located at /etc/nginx/nginx.conf on Linux and Unix platforms.
notify_group 15.8The notify_group resource does nothing, and always fires notifications which are set on it.
npmUse the npm Chef InSpec audit resource to test if a global NPM package is installed.
ntp_confUse the ntp_conf Chef InSpec audit resource to test the synchronization settings defined in the ntp.conf file.
ohaiUse the ohai resource to reload the Ohai configuration on a node.
ohai_hint 14.0Use the ohai_hint resource to aid in configuration detection by passing hint data to Ohai.
onegetUse the oneget Chef InSpec audit resource to test if the named package and/or package version is installed on the system.
openbsd_package 12.1Use the openbsd_package resource to manage packages for the OpenBSD platform.
openssl_dhparam 14.0Use the openssl_dhparam resource to generate dhparam.pem files.
openssl_ec_private_key 14.4Use the openssl_ec_private_key resource to generate an elliptic curve (EC) private key file.
openssl_ec_public_key 14.4Use the openssl_ec_public_key resource to generate elliptic curve (EC) public key files from a given EC private key.
openssl_rsa_private_key 14.0Use the openssl_rsa_private_key resource to generate RSA private key files.
openssl_rsa_public_key 14.0Use the openssl_rsa_public_key resource to generate RSA public key files for a given RSA private key.
openssl_x509_certificate 14.4Use the openssl_x509_certificate resource to generate signed or self-signed, PEM-formatted x509 certificates.
openssl_x509_crl 14.4Use the openssl_x509_crl resource to generate PEM-formatted x509 certificate revocation list (CRL) files.
openssl_x509_request 14.4Use the openssl_x509_request resource to generate PEM-formatted x509 certificates requests.
oracledb_confUse the oracledb_conf Chef InSpec audit resource to test the Oracle system parameters.
oracledb_listener_confUse the oracledb_listener_conf Chef InSpec audit resource to test the listeners settings of Oracle DB, typically located at $ORACLE_HOME/network/admin/listener.ora or $ORACLE_HOME\network\admin\listener.ora depending upon the platform.
oracledb_sessionUse the oracledb_session Chef InSpec audit resource to test SQL commands run against a Oracle database.
osUse the os Chef InSpec audit resource to test the platform on which the system is running.
os_envUse the os_env Chef InSpec audit resource to test the environment variables for the platform on which the system is running.
packageUse the package resource to manage packages.
packagesUse the packages Chef InSpec audit resource to test the properties of multiple packages on the system.
pacman_packageUse the pacman_package resource to manage packages (using pacman) on the Arch Linux platform.
paludis_package 12.1Use the paludis_package resource to manage packages for the Paludis platform.
parse_configUse the parse_config Chef InSpec audit resource to test arbitrary configuration files.
parse_config_fileUse the parse_config_file Chef InSpec audit resource to test arbitrary configuration files.
passwdUse the passwd Chef InSpec audit resource to test the contents of /etc/passwd, which contains the following information for users that may log into the system and/or as users that own running processes.
perlUse the perl resource to execute scripts using the Perl interpreter.
php_configUse the php_config Chef InSpec audit resource to test the PHP configuration parameters from the default php.ini file or a custom php file.
pipUse the pip Chef InSpec audit resource to test packages that are installed using the Python PIP installer.
plist 16.0Use the plist resource to set config values in plist files on macOS systems.
portUse the port Chef InSpec audit resource to test basic port properties, such as port, process, if it’s listening.
portage_packageUse the portage_package resource to manage packages for the Gentoo platform.
postfix_confUse the postfix_conf Chef InSpec audit resource to test the main configuration of the Postfix Mail Transfer Agent.
postgres_confUse the postgres_conf Chef InSpec audit resource to test the contents of the configuration file for PostgreSQL, typically located at /etc/postgresql/<version>/main/postgresql.conf or /var/lib/postgres/data/postgresql.conf, depending on the platform.
postgres_hba_confUse the postgres_hba_conf Chef InSpec audit resource to test the client authentication data defined in the pg_hba.conf file.
postgres_ident_confUse the postgres_ident_conf Chef InSpec audit resource to test the client authentication data defined in the pg_ident.conf file.
postgres_sessionUse the postgres_session Chef InSpec audit resource to test SQL commands run against a PostgreSQL database.
powershellUse the powershell Chef InSpec audit resource to test a Powershell script on the Windows platform.
powershell_package 12.16Use the powershell_package resource to install and manage packages via the PowerShell Package Manager for the Microsoft Windows platform.
powershell_package_source 14.3Use the powershell_package_source resource to register a PowerShell package source and a Powershell package provider.
powershell_scriptUse the powershell_script resource to execute a script using the Windows PowerShell interpreter, much like how the script and script-based resources bash, csh, perl, python, and ruby are used.
ppaUse the ppa Chef InSpec audit resource to verify the PPA repositories on Debian-based Linux distributions.
processesUse the processes Chef InSpec audit resource to test the properties of system programs.
pythonUse the python resource to execute scripts using the Python interpreter.
reboot 12.0Use the reboot resource to reboot a node, a necessary step with some installations on certain platforms.
registry_keyUse the registry_key resource to create and delete registry keys in Microsoft Windows.
remote_directoryUse the remote_directory resource to incrementally transfer a directory from a cookbook to a node.
remote_fileUse the remote_file resource to transfer a file from a remote location using file specificity.
rhsm_errata 14.0Use the rhsm_errata resource to install packages associated with a given Red Hat Subscription Manager Errata ID.
rhsm_errata_level 14.0Use the rhsm_errata_level resource to install all packages of a specified errata level from the Red Hat Subscription Manager.
rhsm_register 14.0Use the rhsm_register resource to register a node with the Red Hat Subscription Manager or a local Red Hat Satellite server.
rhsm_repo 14.0Use the rhsm_repo resource to enable or disable Red Hat Subscription Manager repositories that are made available via attached subscriptions.
rhsm_subscription 14.0Use the rhsm_subscription resource to add or remove Red Hat Subscription Manager subscriptions from your host.
routeUse the route resource to manage the system routing table in a Linux environment.
routing_tableUse the routing_table Chef InSpec audit resource to test the routing information parameters, destination, gateway, and interface present in the routing table.
rpm_packageUse the rpm_package resource to manage packages using the RPM Package Manager.
rubyUse the ruby resource to execute scripts using the Ruby interpreter.
ruby_blockUse the ruby_block resource to execute Ruby code during a Chef Infra Client run.
runit_serviceUse the runit_service Chef InSpec audit resource to test a service using runit.
scriptUse the script resource to execute scripts using a specified interpreter, such as Bash, csh, Perl, Python, or Ruby.
security_identifierUse the security_identifier Chef InSpec resource to test the Security Identifier (SID) for user and group trustees on Windows.
security_policyUse the security_policy Chef InSpec audit resource to test security policies on the Windows platform.
selinuxUse the selinux Chef InSpec audit resource to test the configuration data of the SELinux policy, SELinux modules and SELinux booleans.
selinux_boolean 18.0Use the selinux_boolean resource to set SELinux boolean values.
selinux_fcontext 18.0Use the selinux_fcontext resource to set the SELinux context of files using the semanage fcontext command.
selinux_install 18.0Use the selinux_install resource to encapsulate the set of SELinux packages to install in order to manage SELinux.
selinux_login 18.1Use the selinux_login resource to add, update, or remove SELinux user to OS login mappings.
selinux_module 18.0Use the selinux_module module resource to create an SELinux policy module from a cookbook file or content provided as a string.
selinux_permissive 18.0Use the selinux_permissive resource to allow some domains to misbehave without stopping them.
selinux_port 18.0Use the selinux_port resource to assign a network port to a specific SELinux context.
selinux_state 18.0Use the selinux_state resource to manage the SELinux state on a system.
selinux_user 18.1Use the selinux_user resource to add, update, or remove SELinux users.
serviceUse the service resource to manage a service.
shadowUse the shadow Chef InSpec audit resource to test the contents of /etc/shadow, which contains password details that are readable only by the root user.
smartos_packageUse the smartos_package resource to manage packages for the SmartOS platform.
snap_package 15.0Use the snap_package resource to manage snap packages on Debian and Ubuntu platforms.
solaris_packageUse the solaris_package resource to manage packages on the Solaris platform.
ssh_configUse the ssh_config Chef InSpec audit resource to test OpenSSH client configuration data located at /etc/ssh/ssh_config on Linux and Unix platforms.
ssh_keyUse the ssh_key Chef InSpec audit resource to test ssh keys.
ssh_known_hosts_entry 14.3Use the ssh_known_hosts_entry resource to add an entry for the specified host in /etc/ssh/ssh_known_hosts or a user’s known hosts file if specified.
sshd_active_configUse the sshd_active_config Chef InSpec audit resource to find and test configuration data for the OpenSSH daemon.
sshd_configUse the sshd_config Chef InSpec audit resource to test configuration data for the OpenSSH daemon located at /etc/ssh/sshd_config on Linux and Unix platforms.
sslUse the ssl Chef InSpec audit resource to test SSL settings for the named port.
subversionUse the subversion resource to manage source control resources that exist in a Subversion repository.
sudo 14.0Use the sudo resource to add or remove individual sudo entries using sudoers.d files.
swap_file 14.0Use the swap_file resource to create or delete swap files on Linux systems, and optionally to manage the swappiness configuration for a host.
sys_infoUse the sys_info Chef InSpec audit resource to test for operating system properties for the named host, and then returns that info as standard output.
sysctl 14.0Use the sysctl resource to set or remove kernel parameters using the sysctl command line tool and configuration files in the system’s sysctl.d directory.
systemd_serviceUse the systemd_service Chef InSpec audit resource to test a service using SystemD.
systemd_unit 12.11Use the systemd_unit resource to create, manage, and run systemd units.
sysv_serviceUse the sysv_service Chef InSpec audit resource to test a service using SystemV.
templateUse the template resource to manage the contents of a file using an Embedded Ruby (ERB) template by transferring files from a sub-directory of COOKBOOK_NAME/templates/ to a specified path located on a host that is running Chef Infra Client.
timezone 14.6Use the timezone resource to change the system timezone on Windows, Linux, and macOS hosts.
tomlUse the toml Chef InSpec audit resource to test settings in a TOML file.
upstart_serviceUse the upstart_service Chef InSpec audit resource to test a service using Upstart.
userUse the user resource to add users, update existing users, remove users, and to lock/unlock user passwords.
user_ulimit 16.0Use the user_ulimit resource to create individual ulimit files that are installed into the /etc/security/limits.d/ directory.
usersUse the users Chef InSpec audit resource to look up all local users available on the system, and then test specific properties of those users.
vbscriptUse the vbscript Chef InSpec audit resource to test a VBScript on the Windows platform.
virtualizationUse the virtualization Chef InSpec audit resource to test the virtualization platform on which the system is running.
windows_ad_join 14.0Use the windows_ad_join resource to join a Windows Active Directory domain.
windows_audit_policy 16.2Use the windows_audit_policy resource to configure system level and per-user Windows advanced audit policy settings.
windows_auto_run 14.0Use the windows_auto_run resource to set applications to run at login.
windows_certificate 14.7Use the windows_certificate resource to install a certificate into the Windows certificate store from a file.
windows_defender 17.3Use the windows_defender resource to enable or disable the Microsoft Windows Defender service.
windows_defender_exclusion 17.3Use the windows_defender_exclusion resource to exclude paths, processes, or file types from Windows Defender realtime protection scanning.
windows_dfs_folder 15.0Use the windows_dfs_folder resource to creates a folder within DFS as many levels deep as required.
windows_dfs_namespace 15.0Use the windows_dfs_namespace resource to creates a share and DFS namespace on a Windows server.
windows_dfs_server 15.0Use the windows_dfs_server resource to set system-wide DFS settings.
windows_dns_record 15.0The windows_dns_record resource creates a DNS record for the given domain.
windows_dns_zone 15.0The windows_dns_zone resource creates an Active Directory Integrated DNS Zone on the local server.
windows_envUse the windows_env resource to manage environment keys in Microsoft Windows.
windows_feature 14.0Use the windows_feature resource to add, remove or entirely delete Windows features and roles.
windows_feature_dism 14.0Use the windows_feature_dism resource to add, remove, or entirely delete Windows features and roles using DISM.
windows_feature_powershell 14.0Use the windows_feature_powershell resource to add, remove, or entirely delete Windows features and roles using PowerShell.
windows_firewallUse the windows_firewall Chef InSpec audit resource to test if a firewall profile is correctly configured on a Windows system.
windows_firewall_profile 16.3Use the windows_firewall_profile resource to enable, disable, and configure the Windows firewall.
windows_firewall_rule 14.7Use the windows_firewall_rule resource to create, change or remove Windows firewall rules.
windows_font 14.0Use the windows_font resource to install font files on Windows.
windows_hotfixUse the windows_hotfix Chef InSpec audit resource to test if the hotfix has been installed on a Windows system.
windows_package 11.12Use the windows_package resource to manage packages on the Microsoft Windows platform.
windows_pagefile 14.0Use the windows_pagefile resource to configure pagefile settings on Windows.
windows_path 13.4Use the windows_path resource to manage the path environment variable on Microsoft Windows.
windows_printer 14.0Use the windows_printer resource to setup Windows printers.
windows_printer_port 14.0Use the windows_printer_port resource to create and delete TCP/IPv4 printer ports on Windows.
windows_security_policy 16.0Use the windows_security_policy resource to set a security policy on the Microsoft Windows platform.
windows_service 12.0Use the windows_service resource to create, delete, or manage a service on the Microsoft Windows platform.
windows_share 14.7Use the windows_share resource to create, modify and remove Windows shares.
windows_shortcut 14.0Use the windows_shortcut resource to create shortcut files on Windows.
windows_task 13.0Use the windows_task resource to create, delete or run a Windows scheduled task.
windows_uac 15.0The windows_uac resource configures UAC on Windows hosts by setting registry keys at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
windows_update_settings 17.3Use the windows_update_settings resource to manage the various Windows Update patching options.
windows_user_privilege 16.0Use the windows_user_privilege resource to set privileges for a principal, user, or group.
windows_workgroup 14.5Use the windows_workgroup resource to join or change the workgroup of a Windows host.
wmiUse the wmi Chef InSpec audit resource to test WMI settings on the Windows platform.
x509_certificateUse the x509_certificate Chef InSpec audit resource to test the fields and validity of an x.509 certificate.
x509_private_keyUse the x509_private_key Chef InSpec audit resource to test the x509 private key.
xinetd_confUse the xinetd_conf Chef InSpec audit resource to test services under /etc/xinet.d on Linux and Unix platforms.
xmlUse the xml Chef InSpec audit resource to test data in an XML file.
yamlUse the yaml Chef InSpec audit resource to test configuration data in a Yaml file.
yumUse the yum Chef InSpec audit resource to test packages in the Yum repository.
yum_packageUse the yum_package resource to install, upgrade, and remove packages with Yum for the Red Hat and CentOS platforms.
yum_repository 12.14Use the yum_repository resource to manage a Yum repository configuration file located at /etc/yum.repos.d/repositoryid.repo on the local machine.
zfsUse the zfs Chef InSpec audit resource to test the named ZFS Pool file system and its respective properties.
zfs_datasetUse the zfs_dataset Chef InSpec audit resource to test the ZFS datasets on FreeBSD & Linux (Check OS Family Details for more details).
zfs_poolUse the zfs_pool Chef InSpec audit resource to test the ZFS pools on FreeBSD & Linux (Centos, RHEL, Ubuntu, CloudLinux, Debian) systems.
zypper_packageUse the zypper_package resource to install, upgrade, and remove packages with Zypper for the SUSE Enterprise and openSUSE platforms.
zypper_repository 13.3Use the zypper_repository resource to create Zypper package repositories on SUSE Enterprise Linux and openSUSE systems.

Chef InSpec resource packs

As of Chef InSpec 7, cloud and platform resources moved out of Chef InSpec core into separate resource packs. Each pack bundles many resources, so they're grouped here. Select a pack to see all of its resources.

Resource packChef InSpecDescription
Amazon Web Services (AWS)Chef InSpec resources for auditing Amazon Web Services (AWS) infrastructure.
Microsoft AzureChef InSpec resources for auditing Microsoft Azure infrastructure.
Google Cloud Platform (GCP)Chef InSpec resources for auditing Google Cloud Platform infrastructure.
DockerChef InSpec resources for auditing Docker.
KubernetesChef InSpec resources for auditing Kubernetes.
ElasticsearchChef InSpec resources for auditing Elasticsearch.
MongoDBChef InSpec resources for auditing MongoDB databases and configurations.
RabbitMQChef InSpec resources for auditing RabbitMQ.
PodmanChef InSpec resources for auditing Podman.
Chef HabitatChef InSpec resources for auditing Chef Habitat packages and services.
Edit this page on GitHub

Thank you for your feedback!

×