Only run autoreboot in test

This commit is contained in:
Micke Nordin 2023-02-28 09:07:56 +01:00
parent ed764ad8fd
commit 58a2b4f041
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -75,12 +75,14 @@ class sunetdrive::multinode (
content => template('sunetdrive/multinode/prune.erb.sh'),
mode => '0744',
}
if $environment == 'test' {
cron { 'multinode_prune':
command => '/opt/nextcloud/prune.sh',
require => File['/opt/nextcloud/prune.sh'],
user => 'root',
minute => '25',
hour => '3',
hour => '4',
}
}
file { '/opt/nextcloud/apache.php.ini':
ensure => file,
@ -188,8 +190,6 @@ MACAddressPolicy=none'
$customer_config = $customer_config_full[$environment]
$dbhost = "mariadb-${customer}_db_1"
$gs_enabled = hiera('gs_enabled')
$gs_federation = hiera('gs_federation')
$gss_master_admin = hiera_array('gss_master_admin')