Puppet Plan: puppet::server::clean
- Defined in:
- plans/server/clean.pp
Summary
Clean node certificates on Puppet controller nodeOverview
Bolt plan which run puppetserver ca clean command for each node on Puppet controller node as Bolt plan target
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'plans/server/clean.pp', line 12
plan puppet::server::clean (
TargetSpec $targets,
Variant[Stdlib::Fqdn, Array[Stdlib::Fqdn]] $hosts,
) {
run_plan(facts, $targets)
$apply_results = apply($targets) {
include puppet
flatten($hosts).each |$host| {
puppet::server::ca::clean { $host: }
}
}
# Print log messages from the report
$apply_results.each |$result| {
$result.report['logs'].each |$log| {
out::message("${log['level'].capitalize}: ${log['source']}: ${log['message']}")
}
}
return $apply_results
}
|