Make a variable of the path for metadata cache, SC-2522
This commit is contained in:
parent
7330ca48cf
commit
d9c19c0cfd
1 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue