Fix crontab bug

We need to add minutes, cron doesn't spam the processor every minute.

Change-Id: I330a25f41ddbe761905d1dc6e2611025dfa77178
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-11-06 19:15:08 -05:00
parent 2bdf4a1d57
commit dbefa1558e

View File

@ -18,6 +18,7 @@
class stackalytics (
$stackalytics_ssh_private_key,
$cron_hour = '*/8',
$cron_minute = '0',
$gerrit_ssh_user = 'stackalytics',
$git_revision = 'master',
$git_source = 'https://git.openstack.org/openstack/stackalytics',
@ -109,6 +110,7 @@ class stackalytics (
hour => $cron_hour,
command => '/usr/local/bin/stackalytics-processor',
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
minute => $cron_minute,
require => Exec['install-stackalytics'],
}