mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Add platform
tags and remove trailing whitespace (#2654)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
parent
0837b1fb0d
commit
947efd4064
102 changed files with 192 additions and 90 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: The aide_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
|
@ -65,13 +66,13 @@ The following examples show how to use this InSpec audit resource.
|
|||
describe aide_conf.all_have_rule('sha512') do
|
||||
it { should eq true }
|
||||
end
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
## 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`.
|
||||
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`.
|
||||
|
||||
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the apache Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# apache
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the apache_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# apache_conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the apt Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# apt
|
||||
|
@ -54,7 +55,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the audit_policy Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# audit_policy
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the auditd Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# auditd
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the auditd_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# auditd_conf
|
||||
|
@ -57,11 +58,11 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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`
|
||||
|
||||
The `cmp` matcher compares values across types.
|
||||
The `cmp` matcher compares values across types.
|
||||
|
||||
its('freq') { should cmp 1 }
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the bash Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# bash
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the bond Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# bond
|
||||
|
@ -73,7 +74,7 @@ The `params` matcher tests arbitrary parameters for the bonded network interface
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the bridge Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# bridge
|
||||
|
@ -19,7 +20,7 @@ A `bridge` resource block declares the bridge to be tested and what interface it
|
|||
|
||||
<br>
|
||||
|
||||
## Properties
|
||||
## Properties
|
||||
|
||||
* 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
|
||||
|
@ -38,7 +39,7 @@ The `interfaces` property tests if the named interface is present:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the bsd_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# bsd_service
|
||||
|
@ -44,7 +45,7 @@ All properties available to the `service` resource may be used.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the command Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# command
|
||||
|
@ -127,7 +128,7 @@ Wix includes serveral tools -- such as `candle` (preprocesses and compiles sourc
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the cpan Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# cpan
|
||||
|
@ -43,7 +44,7 @@ This resource uses package names and perl library paths as resource parameters.
|
|||
it { should be_installed }
|
||||
its('version') { should eq '3.7.0' }
|
||||
end
|
||||
|
||||
|
||||
### Test if DBD::Pg is installed within a custom PERL5LIB path on the system
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
The `be_installed` matcher tests if the named package is installed on the system:
|
||||
|
||||
it { should be_installed }
|
||||
it { should be_installed }
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
---
|
||||
title: About the cran Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# cran
|
||||
|
||||
Use the `cran` InSpec audit resource to test R modules that are installed from CRAN package repository.
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
## Syntax
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the crontab Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# crontab
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the csv Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# csv
|
||||
|
@ -48,6 +49,6 @@ The `name` property tests the value of `name` as read from a CSV file compared t
|
|||
|
||||
## 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/).
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: The dh_params Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# dh_params
|
||||
|
@ -198,7 +199,7 @@ Verify via `openssl dhparam` command:
|
|||
|
||||
## 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?
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
title: About the directory Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# 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>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the docker Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# docker
|
||||
|
@ -109,7 +110,7 @@ Or execute the profile directly via URL:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the docker_container Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# 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' }
|
||||
end
|
||||
|
||||
## Resource Parameter Examples
|
||||
## Resource Parameter Examples
|
||||
|
||||
### name
|
||||
|
||||
|
@ -97,5 +98,5 @@ The `command` property tests the value of the container run command:
|
|||
|
||||
## 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/).
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the docker_image Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# docker_image
|
||||
|
@ -83,7 +84,7 @@ The `tag` property tests the value of image tag:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the docker_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# docker_service
|
||||
|
@ -102,7 +103,7 @@ The `tag` property tests the value of image tag:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the Elasticsearch Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# elasticsearch
|
||||
|
@ -228,4 +229,4 @@ Returns the version of Elasticsearch running on each node of the cluster.
|
|||
|
||||
## 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/).
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the etc_fstab Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# etc_fstab
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the etc_group Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# etc_group
|
||||
|
@ -70,5 +71,5 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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/).
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the etc_hosts Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# etc_hosts
|
||||
|
@ -72,4 +73,4 @@ where
|
|||
|
||||
## 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/).
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the etc_hosts_allow Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# etc\_hosts\_allow
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the etc_hosts_deny Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# etc\_hosts\_deny
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the file Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# file
|
||||
|
@ -28,9 +29,9 @@ where
|
|||
|
||||
### 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
|
||||
|
||||
|
@ -325,7 +326,7 @@ For example, for the following symlink:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the filesystem Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# filesystem
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the firewalld Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# 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('services') { should cmp ['ssh', 'icmp'] }
|
||||
end
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
## Properties
|
||||
|
@ -65,7 +66,7 @@ The `default_zone` property displays the default active zone to be used.
|
|||
|
||||
## 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`
|
||||
|
||||
|
@ -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 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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the gem Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# gem
|
||||
|
@ -63,7 +64,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the group Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# group
|
||||
|
@ -39,7 +40,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the grub_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# grub_conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the host Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# host
|
||||
|
@ -56,7 +57,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the http Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# http
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the iis_app Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# iis_app
|
||||
|
@ -71,7 +72,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the iis_site Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# iis_site
|
||||
|
@ -69,7 +70,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the inetd_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# inetd_conf
|
||||
|
@ -89,7 +90,7 @@ then the same test will return `false` for `ftp` and the entire test will fail.
|
|||
|
||||
## Matchers
|
||||
|
||||
|
||||
|
||||
|
||||
For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the ini Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# ini
|
||||
|
@ -45,7 +46,7 @@ In the event a section or setting name has a period in it, the alternate syntax
|
|||
<br>
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the interface Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# interface
|
||||
|
@ -41,11 +42,11 @@ The `speed` matcher tests the speed of the network interface, in MB/sec:
|
|||
|
||||
its('speed') { should eq 1000 }
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the iptables Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# iptables
|
||||
|
@ -54,7 +55,7 @@ Note that the rule specification must exactly match what's in the output of `ipt
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the json Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# json
|
||||
|
@ -52,7 +53,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the kernel_module Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# kernel_module
|
||||
|
@ -91,7 +92,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
title: About the kernel_parameter Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# kernel_parameter
|
||||
|
||||
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>
|
||||
|
||||
## Syntax
|
||||
|
@ -49,4 +50,4 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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/).
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: The key_rsa Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# key_rsa
|
||||
|
@ -63,7 +64,7 @@ The `key_length` property allows testing the number of bits in the key pair.
|
|||
|
||||
## 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?
|
||||
|
||||
|
@ -79,4 +80,4 @@ This property verifies that the key includes a private key:
|
|||
|
||||
describe key_rsa('/etc/pki/www.mywebsite.com.key') do
|
||||
it { should be_private }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the launchd_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# launchd_service
|
||||
|
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the limits_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# limits_conf
|
||||
|
@ -67,6 +68,6 @@ For example:
|
|||
|
||||
## 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/).
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the login_defs Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# login_defs
|
||||
|
@ -65,6 +66,6 @@ The `name` matcher tests the value of `name` as read from `login.defs` versus th
|
|||
|
||||
## 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/).
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the mount Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# mount
|
||||
|
@ -41,7 +42,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the mssql_session Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# mssql_session
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the mysql_conf Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# mysql_conf
|
||||
|
@ -87,7 +88,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the mysql_session Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# mysql_session
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: The Nginx Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# nginx
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the nginx_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# nginx_conf
|
||||
|
@ -50,7 +51,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the npm Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# npm
|
||||
|
@ -44,7 +45,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the ntp_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# ntp_conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the oneget Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# oneget
|
||||
|
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the oracledb_session Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# oracledb_session
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the os Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# os
|
||||
|
@ -52,7 +53,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the os_env Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# os_env
|
||||
|
@ -60,7 +61,7 @@ Habitat uses the `os_env` resource to test environment variables. The environmen
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the package Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# package
|
||||
|
@ -91,7 +92,7 @@ Memcached is an in-memory key-value store that helps improve the performance of
|
|||
|
||||
## 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
|
||||
|
||||
|
@ -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' }
|
||||
|
||||
`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.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the packages Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# packages
|
||||
|
@ -45,7 +46,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the parse_config Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# parse_config
|
||||
|
@ -41,7 +42,7 @@ where each test
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the parse_config_file Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# parse\_config\_file
|
||||
|
@ -76,7 +77,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the passwd Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# passwd
|
||||
|
@ -68,7 +69,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the pip Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# pip
|
||||
|
@ -51,7 +52,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the port Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# port
|
||||
|
@ -99,7 +100,7 @@ or:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the postgres_conf Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# postgres_conf
|
||||
|
@ -67,7 +68,7 @@ where `unix_socket_group` is set to the PostgreSQL default setting (the group to
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the postgres_hba_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# postgres\_hba\_conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the postgres_ident_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# postgres\_ident\_conf
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the postgres_session Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# postgres_session
|
||||
|
@ -59,7 +60,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the powershell Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# powershell
|
||||
|
@ -80,7 +81,7 @@ No newline:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the processes Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# processes
|
||||
|
@ -98,7 +99,7 @@ Below is a mapping table to help you understand what property the unix field map
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the rabbitmq_config Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# rabbitmq_config
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the registry_key Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# registry_key
|
||||
|
@ -90,7 +91,7 @@ where `'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Schedule'` is the f
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the runit_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# runit_service
|
||||
|
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the security_policy Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# security_policy
|
||||
|
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the service Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# service
|
||||
|
@ -99,7 +100,7 @@ This is also possible with `systemd_service`, `runit_service`, `sysv_service`, `
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the shadow Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# shadow
|
||||
|
@ -78,7 +79,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the ssh_config Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# ssh_config
|
||||
|
@ -66,7 +67,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the sshd_config Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# sshd_config
|
||||
|
@ -69,7 +70,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the ssl Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# ssl
|
||||
|
@ -85,7 +86,7 @@ Or execute the profile directly via URL:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the sys_info Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# sys_info
|
||||
|
@ -32,7 +33,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the systemd_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# systemd_service
|
||||
|
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the sysv_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# sysv_service
|
||||
|
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the upstart_service Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# upstart_service
|
||||
|
@ -35,7 +36,7 @@ The path to the service manager's control may be specified for situations where
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the user Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# user
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the users Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# users
|
||||
|
@ -51,7 +52,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the vbscript Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# vbscript
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the virtualization Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# virtualization
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the windows_feature Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# windows_feature
|
||||
|
@ -37,7 +38,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the windows_hotfix Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# windows_hotfix
|
||||
|
@ -43,7 +44,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the windows_task Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# windows_task
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the wmi Resource
|
||||
platform: windows
|
||||
---
|
||||
|
||||
# wmi
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: The x509_certificate Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# x509_certificate
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the xinetd_conf Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# xinetd_conf
|
||||
|
@ -90,7 +91,7 @@ All three settings can be tested in the same block as well:
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the xml Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# xml
|
||||
|
@ -75,7 +76,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the yaml Resource
|
||||
platform: os
|
||||
---
|
||||
|
||||
# yaml
|
||||
|
@ -59,7 +60,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: About the yum Resource
|
||||
platform: linux
|
||||
---
|
||||
|
||||
# yum
|
||||
|
@ -60,7 +61,7 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
## 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
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue