Fix multinode cronjob

This commit is contained in:
Micke Nordin 2023-02-28 18:50:13 +01:00
parent 00256a7259
commit 5abf4b04f4
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -183,12 +183,18 @@ MACAddressPolicy=none'
weekday => '0',
}
cron { 'multinode_cron':
ensure => absent,
command => '/opt/nextcloud/cron.sh',
require => File['/opt/nextcloud/cron.sh'],
user => 'root',
minute => '*/10',
}
$customers.each | $index, $customer | {
cron { "multinode_cron_${customer}":
command => "/opt/nextcloud/cron.sh nextcloud-${customer}_app_1",
require => File['/opt/nextcloud/cron.sh'],
user => 'root',
minute => '*/10',
}
if $environment == 'prod' {
$s3_bucket = "primary-${customer}-drive.sunet.se"
$site_name = "${customer}.drive.sunet.se"