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,7 +46,6 @@ 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,
|
||||||
|
@ -62,11 +61,6 @@ class sunetdrive::multinode (
|
||||||
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,
|
||||||
force => true,
|
force => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue