2024-02-02 14:21:00 +01:00
|
|
|
# DE client
|
|
|
|
class eid::de_client (
|
2025-01-16 10:43:10 +01:00
|
|
|
String $make_target = 'DE-prod',
|
|
|
|
String $path = '/var/cache/metadata_r1',
|
2024-02-02 14:21:00 +01:00
|
|
|
) {
|
|
|
|
|
|
|
|
package { ['openjdk-17-jre-headless']: ensure => latest }
|
|
|
|
|
2025-01-16 10:43:10 +01:00
|
|
|
|
2024-02-02 14:21:00 +01:00
|
|
|
sunet::scriptherder::cronjob { 'update-de':
|
2025-01-16 10:43:10 +01:00
|
|
|
cmd => "sh -c 'cd ${path} && make ${make_target}'",
|
2024-02-02 14:21:00 +01:00
|
|
|
minute => '0',
|
|
|
|
weekday => '1',
|
2024-02-05 09:50:10 +01:00
|
|
|
hour => '8',
|
2024-02-02 14:21:00 +01:00
|
|
|
ok_criteria => ['exit_status=0'],
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|