Classify the nodes you want to scan
In Puppet Enterprise (PE), classify the nodes you want to scan. You can scan a maximum of 5000 nodes in a batch.
Classification is when you create a node group, add nodes to the
group, and assign classes to the group — in this case, the comply class. Classes are the blocks of Puppet code used to configure nodes and assign resources
to them. If you are new to Puppet, see Grouping and classifying nodes for more information.
- In the Puppet Enterprise console, click Node groups.
- Create a new node group or select an existing node group that you want to scan.
- On the Classes tab — in the Add new class field —
select the
complyclass. - Click Add class.
- In your new
complyclass, select thescanner_sourceParameter.Parameters allow a class to request external data. - Change the default parameter value for the Puppet supported cluster to:
https://<COMPLY-HOSTNAME>:30303/assessor
- Click Add to node group, and then commit the changes.
- Run Puppet twice.
You can control how long CIS-CAT scans run on your nodes by setting the optional
assessor_scan_timeout parameter in the comply class. To set it,
go to Node Groups > your Compliance node group > Classes > class:comply
and add the assessor_scan_timeout parameter with the desired timeout value in
seconds. This parameter is not set by default.
The Puppet Enterprise Orchestrator has a separate scan_timeout setting that
acts as a hard cap on the duration of any PE task, including CIS-CAT scans. The
Orchestrator's scan_timeout takes precedence over
assessor_scan_timeout. If assessor_scan_timeout is set to a
value greater than scan_timeout, the Orchestrator terminates the scan before
SCM's timeout is reached, and assessor_scan_timeout has no effect.
assessor_scan_timeout applies only to CIS-CAT scans and does not affect other
PE task types.
Add your PE credentials to SCM.
Related information