From a51cc9fdc4ed6a86cda009a196eb8ce358f284e2 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'], + } } }