From 8c355fcc4d4415b665a2812e2a7afb68b0d9d82c Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 1 Mar 2023 13:31:25 +0100 Subject: [PATCH] Add bucket back for when Karin will delete user --- manifests/multinode.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/multinode.pp b/manifests/multinode.pp index bda2ed4..c688d68 100644 --- a/manifests/multinode.pp +++ b/manifests/multinode.pp @@ -182,11 +182,12 @@ MACAddressPolicy=none' hour => '0', weekday => '0', } - cron { 'multinode_cron': - ensure => absent, - command => '/opt/nextcloud/cron.sh', - user => 'root', - minute => '*/10', + 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}":