Redactore userbucket creation and opt out

This commit is contained in:
Micke Nordin 2023-10-03 17:12:17 +02:00
parent 0a09f73f12
commit 8752500f4d
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -232,7 +232,11 @@ class sunetdrive::script (
} }
} }
# Opt out of userbuckets # Opt out of userbuckets
unless $customer in ['extern', 'gih', 'suni', 'common', 'su', 'lnu'] { if $customer in ['extern', 'gih', 'suni', 'common', 'su', 'lnu'] {
sunet::scriptherder::cronjob { 'makebuckets':
ensure => absent,
}
} else {
sunet::scriptherder::cronjob { 'makebuckets': sunet::scriptherder::cronjob { 'makebuckets':
cmd => '/root/tasks/makebuckets.sh', cmd => '/root/tasks/makebuckets.sh',
minute => '*/5', minute => '*/5',