Compare commits

..

6 commits

Author SHA1 Message Date
Micke Nordin 728b152f85 Merge branch 'main' into stable 2024-08-14 14:49:32 +02:00
Micke Nordin c8051b065a Merge branch 'main' of git+ssh://platform.sunet.se:22022/Drive/sunetdrive 2024-08-14 14:48:47 +02:00
Micke Nordin 41dd736b20 we have no naemon user 2024-08-14 14:48:33 +02:00
Micke Nordin 08be347419 Syntax error 2024-07-01 16:45:49 +02:00
Micke Nordin 9285c155db Alllow running scan jobs 2024-07-01 15:26:34 +02:00
Micke Nordin 12ca587858 loglevel 1
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

This should mean we still have all relevant loginfo we need, such as logins and file operations
2024-06-28 10:57:13 +02:00
2 changed files with 11 additions and 2 deletions

View file

@ -56,6 +56,17 @@ class sunetdrive::script (
} }
$site_name = $config['site_name'] $site_name = $config['site_name']
$user_bucket_name = $config['user_bucket_name'] $user_bucket_name = $config['user_bucket_name']
if $config['user_scans'] {
$config['user_scans'].each |$job| {
sunet::scriptherder::cronjob { $job['name']:
cmd => "ssh -t -l script ${job['server']} /usr/bin/sudo /usr/local/bin/occ ${job['container']} files:scan ${job['user']}",
hour => $job['hour'],
minute => $job['minute'],
ok_criteria => ['exit_status=0','max_age=1d'],
warn_criteria => ['exit_status=1','max_age=2d'],
}
}
}
# It is a start that will get us user buckets and primary buckets # It is a start that will get us user buckets and primary buckets
$backup_projects = $location $backup_projects = $location

View file

@ -42,8 +42,6 @@ class sunetdrive::sitemonitornaemon() {
} }
file { '/etc/naemon/conf.d/sunetdrive_thruk_templates.conf': file { '/etc/naemon/conf.d/sunetdrive_thruk_templates.conf':
ensure => present, ensure => present,
owner => 'naemon',
group => 'naemon',
content => template('sunetdrive/monitor/sunetdrive_thruk_templates.conf.erb'), content => template('sunetdrive/monitor/sunetdrive_thruk_templates.conf.erb'),
mode => '0644', mode => '0644',
} }