Keywords
The following table indicates how each keyword in the VMware compliance checks can be used:
Keyword |
Example Use and Supported Settings |
---|---|
type |
This keyword describes the type of check that is being performed by a given item in an audit file. VMware audits can be performed with the following three types of audit checks:
|
description |
This keyword provides the ability to add a brief description of the check that is being performed. It is strongly recommended that the Example: description: "Disconnect unauthorized devices - 'floppyX.present = false'" |
info |
This keyword allows users to add a more detailed description to the check that is being performed. Multiple Example: info: "Make sure floppy drive is not attached" |
regex |
This keyword allows searching items that match a particular regex expression. Example: regex: "floppy([Xx]|[0-9]+)\\.present :" |
The compliance of a check can be determined by comparing the output of the check to either the expect
or not_expect
keyword. You cannot use more than one compliance testing tag in a given check.
Keyword |
Example Use and Supported Settings |
---|---|
expect |
This keyword allows auditing the config item matched by the The check passes as long as the config line found by Example: regex: "floppy([Xx]|[0-9]+)\\.present :" expect: floppy([Xx]|[0-9]+)\\.present : false" Or: expect: floppy([Xx]|[0-9]+)\\.present : false" In the above cases, the |
not_expect |
This keyword allows searching the configuration items that should not be in the configuration. It acts as the opposite of Example: regex: floppy([Xx]|[0-9]+)\\.present : " not_expect: floppy([Xx]|[0-9]+)\\.present : false" Or: not_expect: floppy([Xx]|[0-9]+)\\.present : false" In the above cases, the |