Puppet Class: compliance_markup
- Defined in:
- manifests/init.pp
Overview
The compliance markup helper class
This class should be included after all other classes in your site so that the mapper can properly analyze the standing catalog.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'manifests/init.pp', line 58
class compliance_markup (
# $compliance_map is in module data
Hash $compliance_map,
Optional[Array[String[1]]] $validate_profiles = undef,
Array[
Enum[
'full',
'non_compliant',
'compliant',
'unknown_resources',
'unknown_parameters',
'custom_entries'
]
] $report_types = ['non_compliant', 'unknown_parameters', 'custom_entries'],
Enum['json','yaml'] $report_format = 'json',
Boolean $report_on_client = false,
Boolean $report_on_server = true,
Optional[Stdlib::Absolutepath] $server_report_dir = undef,
Optional[Hash] $custom_report_data = undef,
Optional[Hash] $options = undef
) {
$available_profiles = delete($compliance_map.keys, 'version')
if $options {
if $compliance_map and !$options['default_map'] {
$_full_options = $options + { 'default_map' => $compliance_map }
}
else {
$_full_options = $options
}
$_options = $_full_options
}
else {
$_options = {
'report_types' => $report_types,
'format' => $report_format,
'client_report' => $report_on_client,
'server_report' => $report_on_server,
'server_report_dir' => $server_report_dir,
'site_data' => $custom_report_data
}
}
compliance_markup::map { 'execute': options => $_options }
}
|