Make a variable of the path for metadata cache, SC-2522

This commit is contained in:
Patrik Holmqvist 2025-01-16 10:43:10 +01:00
parent 7330ca48cf
commit d9c19c0cfd
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -1,12 +1,14 @@
# DE client
class eid::de_client (
String $make_target = 'DE-prod'
String $make_target = 'DE-prod',
String $path = '/var/cache/metadata_r1',
) {
package { ['openjdk-17-jre-headless']: ensure => latest }
sunet::scriptherder::cronjob { 'update-de':
cmd => "sh -c 'cd /var/cache/metadata_r1 && make ${make_target}'",
cmd => "sh -c 'cd ${path} && make ${make_target}'",
minute => '0',
weekday => '1',
hour => '8',