Puppet Class: profile::docker::reporter
- Defined in:
- modules/profile/manifests/docker/reporter.pp
Summary
This profile installs docker-report, and runs the report with the required frequency.Overview
SPDX-License-Identifier: Apache-2.0
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'modules/profile/manifests/docker/reporter.pp', line 5
class profile::docker::reporter(
Boolean $generate_reports = lookup('profile::docker::reporter::generate_reports'),
Optional[Stdlib::HTTPUrl] $proxy = lookup('http_proxy'),
) {
ensure_packages(['python3-docker-report'])
$report_ensure = $generate_reports.bool2str('present', 'absent')
profile::docker::reporter::report {
default:
ensure => $report_ensure,
team => 'ServiceOps',
proxy => $proxy,
;
# Report on base images and production-images
'base':
frequency => 'daily',
;
# Report on images used in production on k8s
'k8s':
frequency => 'weekly',
;
}
}
|