Puppet Plan: complyadm::upgrade::cleanup
- Defined in:
- plans/upgrade/cleanup.pp
Overview
Runs cleanup tasks after a successful upgrade
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'plans/upgrade/cleanup.pp', line 8
plan complyadm::upgrade::cleanup(
Complyadm::Config $config
) {
$prune_result = without_default_logging() || {
run_command(
"${config['runtime']} image prune --all --force",
$config['all_targets'],
{ '_run_as' => 'root', '_catch_errors' => true },
)
}
$prune_result.error_set.targets.each |$target| {
out::message("[WARNING] ${target}: could not clean up unused images")
}
}
|