Add bucket back for when Karin will delete user

This commit is contained in:
Micke Nordin 2023-03-01 13:31:25 +01:00
parent 5abf4b04f4
commit 8c355fcc4d
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -182,12 +182,13 @@ MACAddressPolicy=none'
hour => '0',
weekday => '0',
}
cron { 'multinode_cron':
ensure => absent,
command => '/opt/nextcloud/cron.sh',
if $nodenumber == 2 {
cron { 'add_back_bucket_for_karin_nordgren':
command => '(/usr/local/bin/occ nextcloud-kmh_app_1 files_external:list karin_nordgren@kmh.se && /home/script/bin/create_bucket.sh nextcloud-kmh_app_1 karin_nordgren@kmh.se karin-nordgren-drive-sunet-se) || /bin/true',
user => 'root',
minute => '*/10',
}
}
$customers.each | $index, $customer | {
cron { "multinode_cron_${customer}":
command => "/opt/nextcloud/cron.sh nextcloud-${customer}_app_1",