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:
parent
7a4a33c540
commit
8e1ae3c683
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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 => '*',
|
||||
|
|
Loading…
Reference in New Issue