From 58a2b4f0419f4656a61b7899ff8717745cd1cf6f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 28 Feb 2023 09:07:56 +0100 Subject: [PATCH] Only run autoreboot in test --- manifests/multinode.pp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/manifests/multinode.pp b/manifests/multinode.pp index 12a65ac..93715f1 100644 --- a/manifests/multinode.pp +++ b/manifests/multinode.pp @@ -75,12 +75,14 @@ class sunetdrive::multinode ( content => template('sunetdrive/multinode/prune.erb.sh'), mode => '0744', } - cron { 'multinode_prune': - command => '/opt/nextcloud/prune.sh', - require => File['/opt/nextcloud/prune.sh'], - user => 'root', - minute => '25', - hour => '3', + if $environment == 'test' { + cron { 'multinode_prune': + command => '/opt/nextcloud/prune.sh', + require => File['/opt/nextcloud/prune.sh'], + user => 'root', + minute => '25', + 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')