Reduce the concurrent execution likelihood of Puppet runs

The patch removes the crontab at the begining of deployment and increase
the frequency of the cron job responsible to update Nagios.

Change-Id: I095540c36b3f0c0c318ae91702b5671e3122e8c2
This commit is contained in:
Swann Croiset 2017-01-27 13:00:37 +01:00
parent 7a4a33c540
commit 8e1ae3c683
2 changed files with 6 additions and 1 deletions

View File

@ -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,
}

View File

@ -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 => '*',