From d597ec106a49540fc8724feb6eb83ad0067a1144 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Tue, 3 Sep 2024 14:33:46 +0200 Subject: [PATCH] Gen users on department lists by a cronjob. --- manifests/multinode_db.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/multinode_db.pp b/manifests/multinode_db.pp index 79ead21..73acbb1 100644 --- a/manifests/multinode_db.pp +++ b/manifests/multinode_db.pp @@ -55,5 +55,12 @@ class sunetdrive::multinode_db(){ group => 'root', mode => '0700', } + sunet::scriptherder::cronjob { 'genuserdeplists': + cmd => '/root/tasks/genusersondepartmentlists.sh', + hour => '2', + minute => '5', + ok_criteria => ['exit_status=0','max_age=30h'], + warn_criteria => ['exit_status=1', 'max_age=60h'], + } } }