diff --git a/deployment_scripts/puppet/manifests/hiera.pp b/deployment_scripts/puppet/manifests/hiera.pp index d8aae09..610c7da 100644 --- a/deployment_scripts/puppet/manifests/hiera.pp +++ b/deployment_scripts/puppet/manifests/hiera.pp @@ -173,3 +173,8 @@ file { $purge: ensure => absent, backup => '.bak-version-0.10.x', } + +# Remove the crontab to avoid concurrent execution during an upgrade +cron { 'update lma infra alerting': + ensure => absent, +} diff --git a/deployment_scripts/puppet/modules/lma_infra_alerting/manifests/nagios.pp b/deployment_scripts/puppet/modules/lma_infra_alerting/manifests/nagios.pp index c4d467b..2ed80bb 100644 --- a/deployment_scripts/puppet/modules/lma_infra_alerting/manifests/nagios.pp +++ b/deployment_scripts/puppet/modules/lma_infra_alerting/manifests/nagios.pp @@ -106,7 +106,7 @@ class lma_infra_alerting::nagios ( cron { 'update lma infra alerting': ensure => present, command => "/usr/bin/flock -n /tmp/lma.lock -c \"${cron_bin} lma_infrastructure_alerting ${plugin_version}\"", - minute => '*', + minute => '*/10', hour => '*', month => '*', monthday => '*',