Add platform tags and remove trailing whitespace (#2654)

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2018-02-15 18:28:15 -06:00 committed by Jared Quick
parent 0837b1fb0d
commit 947efd4064
102 changed files with 192 additions and 90 deletions

View file

@ -1,5 +1,6 @@
--- ---
title: The aide_conf Resource title: The aide_conf Resource
platform: linux
--- ---
# aide_conf # aide_conf
@ -40,7 +41,7 @@ Use the where clause to match a selection_line to one rule or a particular set o
## Property Examples ## Property Examples
The following examples show how to use this InSpec audit resource. The following examples show how to use this InSpec audit resource.
### Test if all selection lines contain the xattr rule ### Test if all selection lines contain the xattr rule
@ -65,13 +66,13 @@ The following examples show how to use this InSpec audit resource.
describe aide_conf.all_have_rule('sha512') do describe aide_conf.all_have_rule('sha512') do
it { should eq true } it { should eq true }
end end
<br> <br>
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
This InSpec audit resource uses the matchers `eq` and `include`. This InSpec audit resource uses the matchers `eq` and `include`.
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the apache Resource title: About the apache Resource
platform: linux
--- ---
# apache # apache

View file

@ -1,5 +1,6 @@
--- ---
title: About the apache_conf Resource title: About the apache_conf Resource
platform: linux
--- ---
# apache_conf # apache_conf

View file

@ -1,5 +1,6 @@
--- ---
title: About the apt Resource title: About the apt Resource
platform: linux
--- ---
# apt # apt
@ -54,7 +55,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the audit_policy Resource title: About the audit_policy Resource
platform: linux
--- ---
# audit_policy # audit_policy

View file

@ -1,5 +1,6 @@
--- ---
title: About the auditd Resource title: About the auditd Resource
platform: linux
--- ---
# auditd # auditd

View file

@ -1,5 +1,6 @@
--- ---
title: About the auditd_conf Resource title: About the auditd_conf Resource
platform: linux
--- ---
# auditd_conf # auditd_conf
@ -57,11 +58,11 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### `cmp` ### `cmp`
The `cmp` matcher compares values across types. The `cmp` matcher compares values across types.
its('freq') { should cmp 1 } its('freq') { should cmp 1 }

View file

@ -1,5 +1,6 @@
--- ---
title: About the bash Resource title: About the bash Resource
platform: linux
--- ---
# bash # bash

View file

@ -1,5 +1,6 @@
--- ---
title: About the bond Resource title: About the bond Resource
platform: linux
--- ---
# bond # bond
@ -73,7 +74,7 @@ The `params` matcher tests arbitrary parameters for the bonded network interface
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the bridge Resource title: About the bridge Resource
platform: linux
--- ---
# bridge # bridge
@ -19,7 +20,7 @@ A `bridge` resource block declares the bridge to be tested and what interface it
<br> <br>
## Properties ## Properties
* On Linux platforms, any value in the `/sys/class/net/{interface}/bridge` directory may be tested * On Linux platforms, any value in the `/sys/class/net/{interface}/bridge` directory may be tested
* On the Windows platform, the `Get-NetAdapter` cmdlet is associated with the `Get-NetAdapterBinding` cmdlet and returns the `ComponentID ms_bridge` value as a JSON object * On the Windows platform, the `Get-NetAdapter` cmdlet is associated with the `Get-NetAdapterBinding` cmdlet and returns the `ComponentID ms_bridge` value as a JSON object
@ -38,7 +39,7 @@ The `interfaces` property tests if the named interface is present:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the bsd_service Resource title: About the bsd_service Resource
platform: linux
--- ---
# bsd_service # bsd_service
@ -44,7 +45,7 @@ All properties available to the `service` resource may be used.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the command Resource title: About the command Resource
platform: os
--- ---
# command # command
@ -127,7 +128,7 @@ Wix includes serveral tools -- such as `candle` (preprocesses and compiles sourc
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the cpan Resource title: About the cpan Resource
platform: linux
--- ---
# cpan # cpan
@ -43,7 +44,7 @@ This resource uses package names and perl library paths as resource parameters.
it { should be_installed } it { should be_installed }
its('version') { should eq '3.7.0' } its('version') { should eq '3.7.0' }
end end
### Test if DBD::Pg is installed within a custom PERL5LIB path on the system ### Test if DBD::Pg is installed within a custom PERL5LIB path on the system
Hint: You can pass multiple paths separated with a colon Hint: You can pass multiple paths separated with a colon
@ -69,10 +70,10 @@ The `version` property tests if the named package version is on the system:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed
The `be_installed` matcher tests if the named package is installed on the system: The `be_installed` matcher tests if the named package is installed on the system:
it { should be_installed } it { should be_installed }

View file

@ -1,12 +1,13 @@
--- ---
title: About the cran Resource title: About the cran Resource
platform: linux
--- ---
# cran # cran
Use the `cran` InSpec audit resource to test R modules that are installed from CRAN package repository. Use the `cran` InSpec audit resource to test R modules that are installed from CRAN package repository.
<br> <br>
## Syntax ## Syntax

View file

@ -1,5 +1,6 @@
--- ---
title: About the crontab Resource title: About the crontab Resource
platform: linux
--- ---
# crontab # crontab

View file

@ -1,5 +1,6 @@
--- ---
title: About the csv Resource title: About the csv Resource
platform: os
--- ---
# csv # csv
@ -48,6 +49,6 @@ The `name` property tests the value of `name` as read from a CSV file compared t
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: The dh_params Resource title: The dh_params Resource
platform: linux
--- ---
# dh_params # dh_params
@ -198,7 +199,7 @@ Verify via `openssl dhparam` command:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### valid? ### valid?

View file

@ -1,10 +1,11 @@
--- ---
title: About the directory Resource title: About the directory Resource
platform: os
--- ---
# directory # directory
Use the `directory` InSpec audit resource to test if the file type is a directory. This is equivalent to using the `file` resource and the `be_directory` matcher, but provides a simpler and more direct way to test directories. Use the `directory` InSpec audit resource to test if the file type is a directory. This is equivalent to using the `file` resource and the `be_directory` matcher, but provides a simpler and more direct way to test directories.
<br> <br>

View file

@ -1,5 +1,6 @@
--- ---
title: About the docker Resource title: About the docker Resource
platform: linux
--- ---
# docker # docker
@ -109,7 +110,7 @@ Or execute the profile directly via URL:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### containers ### containers

View file

@ -1,5 +1,6 @@
--- ---
title: About the docker_container Resource title: About the docker_container Resource
platform: linux
--- ---
# docker_container # docker_container
@ -23,7 +24,7 @@ A `docker_container` resource block declares the configuration data to be tested
its('command') { should eq 'nc -ll -p 1234 -e /bin/cat' } its('command') { should eq 'nc -ll -p 1234 -e /bin/cat' }
end end
## Resource Parameter Examples ## Resource Parameter Examples
### name ### name
@ -97,5 +98,5 @@ The `command` property tests the value of the container run command:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the docker_image Resource title: About the docker_image Resource
platform: linux
--- ---
# docker_image # docker_image
@ -83,7 +84,7 @@ The `tag` property tests the value of image tag:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the docker_service Resource title: About the docker_service Resource
platform: linux
--- ---
# docker_service # docker_service
@ -102,7 +103,7 @@ The `tag` property tests the value of image tag:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the Elasticsearch Resource title: About the Elasticsearch Resource
platform: linux
--- ---
# elasticsearch # elasticsearch
@ -228,4 +229,4 @@ Returns the version of Elasticsearch running on each node of the cluster.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the etc_fstab Resource title: About the etc_fstab Resource
platform: linux
--- ---
# etc_fstab # etc_fstab

View file

@ -1,5 +1,6 @@
--- ---
title: About the etc_group Resource title: About the etc_group Resource
platform: linux
--- ---
# etc_group # etc_group
@ -70,5 +71,5 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the etc_hosts Resource title: About the etc_hosts Resource
platform: linux
--- ---
# etc_hosts # etc_hosts
@ -72,4 +73,4 @@ where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the etc_hosts_allow Resource title: About the etc_hosts_allow Resource
platform: linux
--- ---
# etc\_hosts\_allow # etc\_hosts\_allow

View file

@ -1,5 +1,6 @@
--- ---
title: About the etc_hosts_deny Resource title: About the etc_hosts_deny Resource
platform: linux
--- ---
# etc\_hosts\_deny # etc\_hosts\_deny

View file

@ -1,5 +1,6 @@
--- ---
title: About the file Resource title: About the file Resource
platform: os
--- ---
# file # file
@ -28,9 +29,9 @@ where
### General Properties ### General Properties
content, size, basename, path, owner, group, type content, size, basename, path, owner, group, type
### Unix/Linux Properties ### Unix/Linux Properties
symlink, mode, link_path, mtime, size, selinux\_label, md5sum, sha256sum, path, source, source\_path, uid, gid symlink, mode, link_path, mtime, size, selinux\_label, md5sum, sha256sum, path, source, source\_path, uid, gid
@ -325,7 +326,7 @@ For example, for the following symlink:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be\_allowed ### be\_allowed

View file

@ -1,5 +1,6 @@
--- ---
title: About the filesystem Resource title: About the filesystem Resource
platform: linux
--- ---
# filesystem # filesystem

View file

@ -1,5 +1,6 @@
--- ---
title: About the firewalld Resource title: About the firewalld Resource
platform: linux
--- ---
# firewalld # firewalld
@ -26,7 +27,7 @@ Use the where clause to test open interfaces, sources, and services in active zo
its('sources') { should cmp ['192.168.1.0/24', '192.168.1.2'] } its('sources') { should cmp ['192.168.1.0/24', '192.168.1.2'] }
its('services') { should cmp ['ssh', 'icmp'] } its('services') { should cmp ['ssh', 'icmp'] }
end end
<br> <br>
## Properties ## Properties
@ -65,7 +66,7 @@ The `default_zone` property displays the default active zone to be used.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### `be_installed` ### `be_installed`
@ -103,4 +104,4 @@ The `be_running` matcher tests if the firewalld service is running:
it { should have_rule_enabled('family=ipv4 source address=192.168.0.14 accept', 'public') } it { should have_rule_enabled('family=ipv4 source address=192.168.0.14 accept', 'public') }
It is not necessary to add the "rule" string, and you can start with the optional flags that are used in firewalld and end with the action It is not necessary to add the "rule" string, and you can start with the optional flags that are used in firewalld and end with the action

View file

@ -1,5 +1,6 @@
--- ---
title: About the gem Resource title: About the gem Resource
platform: os
--- ---
# gem # gem
@ -63,7 +64,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the group Resource title: About the group Resource
platform: os
--- ---
# group # group
@ -39,7 +40,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_local ### be_local

View file

@ -1,5 +1,6 @@
--- ---
title: About the grub_conf Resource title: About the grub_conf Resource
platform: linux
--- ---
# grub_conf # grub_conf

View file

@ -1,5 +1,6 @@
--- ---
title: About the host Resource title: About the host Resource
platform: os
--- ---
# host # host
@ -56,7 +57,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_reachable ### be_reachable

View file

@ -1,5 +1,6 @@
--- ---
title: About the http Resource title: About the http Resource
platform: linux
--- ---
# http # http

View file

@ -1,5 +1,6 @@
--- ---
title: About the iis_app Resource title: About the iis_app Resource
platform: windows
--- ---
# iis_app # iis_app
@ -71,7 +72,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the iis_site Resource title: About the iis_site Resource
platform: windows
--- ---
# iis_site # iis_site
@ -69,7 +70,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_running ### be_running

View file

@ -1,5 +1,6 @@
--- ---
title: About the inetd_conf Resource title: About the inetd_conf Resource
platform: linux
--- ---
# inetd_conf # inetd_conf
@ -89,7 +90,7 @@ then the same test will return `false` for `ftp` and the entire test will fail.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the ini Resource title: About the ini Resource
platform: os
--- ---
# ini # ini
@ -45,7 +46,7 @@ In the event a section or setting name has a period in it, the alternate syntax
<br> <br>
## Properties ## Properties
This resource supports any of the settings listed in an INI file as properties. This resource supports any of the settings listed in an INI file as properties.
## Examples ## Examples

View file

@ -1,5 +1,6 @@
--- ---
title: About the interface Resource title: About the interface Resource
platform: os
--- ---
# interface # interface
@ -41,11 +42,11 @@ The `speed` matcher tests the speed of the network interface, in MB/sec:
its('speed') { should eq 1000 } its('speed') { should eq 1000 }
<br> <br>
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_up ### be_up

View file

@ -1,5 +1,6 @@
--- ---
title: About the iptables Resource title: About the iptables Resource
platform: linux
--- ---
# iptables # iptables
@ -54,7 +55,7 @@ Note that the rule specification must exactly match what's in the output of `ipt
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### have_rule ### have_rule

View file

@ -1,5 +1,6 @@
--- ---
title: About the json Resource title: About the json Resource
platform: os
--- ---
# json # json
@ -52,7 +53,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### name ### name

View file

@ -1,5 +1,6 @@
--- ---
title: About the kernel_module Resource title: About the kernel_module Resource
platform: linux
--- ---
# kernel_module # kernel_module
@ -91,7 +92,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_loaded ### be_loaded

View file

@ -1,11 +1,12 @@
--- ---
title: About the kernel_parameter Resource title: About the kernel_parameter Resource
platform: linux
--- ---
# kernel_parameter # kernel_parameter
Use the `kernel_parameter` InSpec audit resource to test kernel parameters on Linux platforms. Use the `kernel_parameter` InSpec audit resource to test kernel parameters on Linux platforms.
These parameters are located under `/proc/cmdline`. These parameters are located under `/proc/cmdline`.
<br> <br>
## Syntax ## Syntax
@ -49,4 +50,4 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: The key_rsa Resource title: The key_rsa Resource
platform: os
--- ---
# key_rsa # key_rsa
@ -63,7 +64,7 @@ The `key_length` property allows testing the number of bits in the key pair.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### public? ### public?
@ -79,4 +80,4 @@ This property verifies that the key includes a private key:
describe key_rsa('/etc/pki/www.mywebsite.com.key') do describe key_rsa('/etc/pki/www.mywebsite.com.key') do
it { should be_private } it { should be_private }
end end

View file

@ -1,5 +1,6 @@
--- ---
title: About the launchd_service Resource title: About the launchd_service Resource
platform: linux
--- ---
# launchd_service # launchd_service
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the limits_conf Resource title: About the limits_conf Resource
platform: linux
--- ---
# limits_conf # limits_conf
@ -67,6 +68,6 @@ For example:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the login_defs Resource title: About the login_defs Resource
platform: linux
--- ---
# login_defs # login_defs
@ -65,6 +66,6 @@ The `name` matcher tests the value of `name` as read from `login.defs` versus th
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

View file

@ -1,5 +1,6 @@
--- ---
title: About the mount Resource title: About the mount Resource
platform: linux
--- ---
# mount # mount
@ -41,7 +42,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_mounted ### be_mounted

View file

@ -1,5 +1,6 @@
--- ---
title: About the mssql_session Resource title: About the mssql_session Resource
platform: windows
--- ---
# mssql_session # mssql_session

View file

@ -1,5 +1,6 @@
--- ---
title: About the mysql_conf Resource title: About the mysql_conf Resource
platform: os
--- ---
# mysql_conf # mysql_conf
@ -87,7 +88,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### setting ### setting

View file

@ -1,5 +1,6 @@
--- ---
title: About the mysql_session Resource title: About the mysql_session Resource
platform: os
--- ---
# mysql_session # mysql_session

View file

@ -1,5 +1,6 @@
--- ---
title: The Nginx Resource title: The Nginx Resource
platform: linux
--- ---
# nginx # nginx

View file

@ -1,5 +1,6 @@
--- ---
title: About the nginx_conf Resource title: About the nginx_conf Resource
platform: linux
--- ---
# nginx_conf # nginx_conf
@ -50,7 +51,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### http ### http

View file

@ -1,5 +1,6 @@
--- ---
title: About the npm Resource title: About the npm Resource
platform: os
--- ---
# npm # npm
@ -44,7 +45,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the ntp_conf Resource title: About the ntp_conf Resource
platform: linux
--- ---
# ntp_conf # ntp_conf

View file

@ -1,5 +1,6 @@
--- ---
title: About the oneget Resource title: About the oneget Resource
platform: windows
--- ---
# oneget # oneget
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the oracledb_session Resource title: About the oracledb_session Resource
platform: os
--- ---
# oracledb_session # oracledb_session

View file

@ -1,5 +1,6 @@
--- ---
title: About the os Resource title: About the os Resource
platform: os
--- ---
# os # os
@ -52,7 +53,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
## os.family? Helpers ## os.family? Helpers

View file

@ -1,5 +1,6 @@
--- ---
title: About the os_env Resource title: About the os_env Resource
platform: os
--- ---
# os_env # os_env
@ -60,7 +61,7 @@ Habitat uses the `os_env` resource to test environment variables. The environmen
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### content ### content

View file

@ -1,5 +1,6 @@
--- ---
title: About the package Resource title: About the package Resource
platform: os
--- ---
# package # package
@ -91,7 +92,7 @@ Memcached is an in-memory key-value store that helps improve the performance of
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_held ### be_held
@ -116,4 +117,4 @@ You can also use the `cmp OPERATOR` matcher to perform comparisions using the ve
its('version') { should cmp >= '7.35.0-1ubuntu3.10' } its('version') { should cmp >= '7.35.0-1ubuntu3.10' }
`cmp` understands version numbers using Gem::Version, and can use the operators `==, <, <=, >=, and >`. It will compare versions by each segment, not as a string - so '7.4' is smaller than '7.30', for example. `cmp` understands version numbers using Gem::Version, and can use the operators `==, <, <=, >=, and >`. It will compare versions by each segment, not as a string - so '7.4' is smaller than '7.30', for example.

View file

@ -1,5 +1,6 @@
--- ---
title: About the packages Resource title: About the packages Resource
platform: linux
--- ---
# packages # packages
@ -45,7 +46,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### statuses ### statuses

View file

@ -1,5 +1,6 @@
--- ---
title: About the parse_config Resource title: About the parse_config Resource
platform: os
--- ---
# parse_config # parse_config
@ -41,7 +42,7 @@ where each test
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### assignment_regex ### assignment_regex

View file

@ -1,5 +1,6 @@
--- ---
title: About the parse_config_file Resource title: About the parse_config_file Resource
platform: os
--- ---
# parse\_config\_file # parse\_config\_file
@ -76,7 +77,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### assignment_regex ### assignment_regex

View file

@ -1,5 +1,6 @@
--- ---
title: About the passwd Resource title: About the passwd Resource
platform: linux
--- ---
# passwd # passwd
@ -68,7 +69,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### gids ### gids

View file

@ -1,5 +1,6 @@
--- ---
title: About the pip Resource title: About the pip Resource
platform: os
--- ---
# pip # pip
@ -51,7 +52,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the port Resource title: About the port Resource
platform: os
--- ---
# port # port
@ -99,7 +100,7 @@ or:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### address ### address

View file

@ -1,5 +1,6 @@
--- ---
title: About the postgres_conf Resource title: About the postgres_conf Resource
platform: os
--- ---
# postgres_conf # postgres_conf
@ -67,7 +68,7 @@ where `unix_socket_group` is set to the PostgreSQL default setting (the group to
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### setting ### setting

View file

@ -1,5 +1,6 @@
--- ---
title: About the postgres_hba_conf Resource title: About the postgres_hba_conf Resource
platform: linux
--- ---
# postgres\_hba\_conf # postgres\_hba\_conf

View file

@ -1,5 +1,6 @@
--- ---
title: About the postgres_ident_conf Resource title: About the postgres_ident_conf Resource
platform: linux
--- ---
# postgres\_ident\_conf # postgres\_ident\_conf

View file

@ -1,5 +1,6 @@
--- ---
title: About the postgres_session Resource title: About the postgres_session Resource
platform: os
--- ---
# postgres_session # postgres_session
@ -59,7 +60,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### output ### output

View file

@ -1,5 +1,6 @@
--- ---
title: About the powershell Resource title: About the powershell Resource
platform: windows
--- ---
# powershell # powershell
@ -80,7 +81,7 @@ No newline:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exit_status ### exit_status

View file

@ -1,5 +1,6 @@
--- ---
title: About the processes Resource title: About the processes Resource
platform: os
--- ---
# processes # processes
@ -98,7 +99,7 @@ Below is a mapping table to help you understand what property the unix field map
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### property_name ### property_name

View file

@ -1,5 +1,6 @@
--- ---
title: About the rabbitmq_config Resource title: About the rabbitmq_config Resource
platform: linux
--- ---
# rabbitmq_config # rabbitmq_config

View file

@ -1,5 +1,6 @@
--- ---
title: About the registry_key Resource title: About the registry_key Resource
platform: windows
--- ---
# registry_key # registry_key
@ -90,7 +91,7 @@ where `'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Schedule'` is the f
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### children ### children

View file

@ -1,5 +1,6 @@
--- ---
title: About the runit_service Resource title: About the runit_service Resource
platform: linux
--- ---
# runit_service # runit_service
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the security_policy Resource title: About the security_policy Resource
platform: windows
--- ---
# security_policy # security_policy
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### policy_name ### policy_name

View file

@ -1,5 +1,6 @@
--- ---
title: About the service Resource title: About the service Resource
platform: os
--- ---
# service # service
@ -99,7 +100,7 @@ This is also possible with `systemd_service`, `runit_service`, `sysv_service`, `
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the shadow Resource title: About the shadow Resource
platform: linux
--- ---
# shadow # shadow
@ -78,7 +79,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### count ### count

View file

@ -1,5 +1,6 @@
--- ---
title: About the ssh_config Resource title: About the ssh_config Resource
platform: linux
--- ---
# ssh_config # ssh_config
@ -66,7 +67,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### name ### name

View file

@ -1,5 +1,6 @@
--- ---
title: About the sshd_config Resource title: About the sshd_config Resource
platform: linux
--- ---
# sshd_config # sshd_config
@ -69,7 +70,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### name ### name

View file

@ -1,5 +1,6 @@
--- ---
title: About the ssl Resource title: About the ssl Resource
platform: os
--- ---
# ssl # ssl
@ -85,7 +86,7 @@ Or execute the profile directly via URL:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the sys_info Resource title: About the sys_info Resource
platform: os
--- ---
# sys_info # sys_info
@ -32,7 +33,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### hostname ### hostname

View file

@ -1,5 +1,6 @@
--- ---
title: About the systemd_service Resource title: About the systemd_service Resource
platform: linux
--- ---
# systemd_service # systemd_service
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the sysv_service Resource title: About the sysv_service Resource
platform: linux
--- ---
# sysv_service # sysv_service
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the upstart_service Resource title: About the upstart_service Resource
platform: linux
--- ---
# upstart_service # upstart_service
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

View file

@ -1,5 +1,6 @@
--- ---
title: About the user Resource title: About the user Resource
platform: os
--- ---
# user # user

View file

@ -1,5 +1,6 @@
--- ---
title: About the users Resource title: About the users Resource
platform: os
--- ---
# users # users
@ -51,7 +52,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### exist ### exist

View file

@ -1,5 +1,6 @@
--- ---
title: About the vbscript Resource title: About the vbscript Resource
platform: windows
--- ---
# vbscript # vbscript

View file

@ -1,5 +1,6 @@
--- ---
title: About the virtualization Resource title: About the virtualization Resource
platform: linux
--- ---
# virtualization # virtualization

View file

@ -1,5 +1,6 @@
--- ---
title: About the windows_feature Resource title: About the windows_feature Resource
platform: windows
--- ---
# windows_feature # windows_feature
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the windows_hotfix Resource title: About the windows_hotfix Resource
platform: windows
--- ---
# windows_hotfix # windows_hotfix
@ -43,7 +44,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_installed ### be_installed

View file

@ -1,5 +1,6 @@
--- ---
title: About the windows_task Resource title: About the windows_task Resource
platform: windows
--- ---
# windows_task # windows_task

View file

@ -1,5 +1,6 @@
--- ---
title: About the wmi Resource title: About the wmi Resource
platform: windows
--- ---
# wmi # wmi

View file

@ -1,5 +1,6 @@
--- ---
title: The x509_certificate Resource title: The x509_certificate Resource
platform: os
--- ---
# x509_certificate # x509_certificate

View file

@ -1,5 +1,6 @@
--- ---
title: About the xinetd_conf Resource title: About the xinetd_conf Resource
platform: linux
--- ---
# xinetd_conf # xinetd_conf
@ -90,7 +91,7 @@ All three settings can be tested in the same block as well:
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabed ### be_enabed

View file

@ -1,5 +1,6 @@
--- ---
title: About the xml Resource title: About the xml Resource
platform: os
--- ---
# xml # xml
@ -75,7 +76,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### name ### name

View file

@ -1,5 +1,6 @@
--- ---
title: About the yaml Resource title: About the yaml Resource
platform: os
--- ---
# yaml # yaml
@ -59,7 +60,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### name ### name

View file

@ -1,5 +1,6 @@
--- ---
title: About the yum Resource title: About the yum Resource
platform: linux
--- ---
# yum # yum
@ -60,7 +61,7 @@ The following examples show how to use this InSpec audit resource.
## Matchers ## Matchers
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
### be_enabled ### be_enabled

Some files were not shown because too many files have changed in this diff Show more