Run in prod
This commit is contained in:
parent
3007fc6de4
commit
7090f7ca5e
2 changed files with 15 additions and 25 deletions
|
@ -101,7 +101,7 @@ define sunetdrive::app_type (
|
||||||
content => template('sunetdrive/application/get_containers'),
|
content => template('sunetdrive/application/get_containers'),
|
||||||
mode => '0744',
|
mode => '0744',
|
||||||
}
|
}
|
||||||
if ($environment == 'test' and ($nodenumber == 3)) {
|
if ($nodenumber == 3) {
|
||||||
file { '/usr/local/bin/scan_external_mounts':
|
file { '/usr/local/bin/scan_external_mounts':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
force => true,
|
force => true,
|
||||||
|
@ -117,10 +117,6 @@ define sunetdrive::app_type (
|
||||||
ok_criteria => ['exit_status=0','max_age=2d'],
|
ok_criteria => ['exit_status=0','max_age=2d'],
|
||||||
warn_criteria => ['exit_status=1','max_age=3d'],
|
warn_criteria => ['exit_status=1','max_age=3d'],
|
||||||
}
|
}
|
||||||
cron { 'scan_external_mounts':
|
|
||||||
ensure => absent,
|
|
||||||
command => 'true',
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
file { '/opt/nextcloud/cron.sh':
|
file { '/opt/nextcloud/cron.sh':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|
|
@ -46,26 +46,20 @@ class sunetdrive::multinode (
|
||||||
content => template('sunetdrive/application/get_containers'),
|
content => template('sunetdrive/application/get_containers'),
|
||||||
mode => '0744',
|
mode => '0744',
|
||||||
}
|
}
|
||||||
if ($environment == 'test') {
|
file { '/usr/local/bin/scan_external_mounts':
|
||||||
file { '/usr/local/bin/scan_external_mounts':
|
ensure => present,
|
||||||
ensure => present,
|
force => true,
|
||||||
force => true,
|
owner => 'root',
|
||||||
owner => 'root',
|
group => 'root',
|
||||||
group => 'root',
|
content => template('sunetdrive/application/scan_external_mounts.sh'),
|
||||||
content => template('sunetdrive/application/scan_external_mounts.sh'),
|
mode => '0744',
|
||||||
mode => '0744',
|
}
|
||||||
}
|
sunet::scriptherder::cronjob { 'scriptherder_scan_external_mounts':
|
||||||
sunet::scriptherder::cronjob { 'scriptherder_scan_external_mounts':
|
cmd => '/usr/local/bin/scan_external_mounts',
|
||||||
cmd => '/usr/local/bin/scan_external_mounts',
|
hour => '1',
|
||||||
hour => '1',
|
minute => '20',
|
||||||
minute => '20',
|
ok_criteria => ['exit_status=0','max_age=2d'],
|
||||||
ok_criteria => ['exit_status=0','max_age=2d'],
|
warn_criteria => ['exit_status=1','max_age=3d'],
|
||||||
warn_criteria => ['exit_status=1','max_age=3d'],
|
|
||||||
}
|
|
||||||
cron { 'scan_external_mounts':
|
|
||||||
ensure => absent,
|
|
||||||
command => 'true',
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
file { '/usr/local/bin/nocc':
|
file { '/usr/local/bin/nocc':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
|
Loading…
Add table
Reference in a new issue