4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'modules/profile/manifests/docker/reporter.pp', line 4
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,
proxy => $proxy,
;
# Report on base images and production-images
'base':
frequency => 'daily',
;
# Report on releng images
'releng':
frequency => 'weekly',
;
# Report on images used in production on k8s
'k8s':
frequency => 'weekly',
;
}
}
|