Puppet Class: cis_benchmarks
- Inherits:
- ::cis_benchmarks::params
- Defined in:
- manifests/init.pp
Overview
class cis_benchmarks cis implimentation
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/init.pp', line 4
class cis_benchmarks(
String $cis_version = lookup('cis_benchmarks::version', String,'first','v_2_1_1'),
Boolean $benchmark = lookup('cis_benchmarks::benchmark', Boolean, 'first', $cis_benchmarks::params::benchmark),
Hash $exec_controls = lookup("cis_benchmarks::${cis_version}::exec_control", Hash, 'first', $cis_benchmarks::params::exec_control),
Optional[String] $cis_scripts_dir = undef,
Optional[Array] $cis_scripts = undef,
) inherits ::cis_benchmarks::params {
$osrelease = $cis_benchmarks::params::osrelease
class { '::cis_benchmarks::prereq' :
cis_scripts_dir => $cis_scripts_dir,
cis_scripts => $cis_scripts,
}
$exec_controls.each |$rule, $ishouldexecute| {
if $ishouldexecute {
class{ "::cis_benchmarks::${osrelease}::rule::${cis_version}::${rule}":
}
}
}
}
|