From 7f1244c8c2a418ed9e978f098c73f8697e2cd306 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 26 Mar 2018 00:24:47 +0200 Subject: [PATCH] Make bot quiet and use timezone to have correct start time --- modules/role/manifests/cryptoportfolio/bot.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/role/manifests/cryptoportfolio/bot.pp b/modules/role/manifests/cryptoportfolio/bot.pp index a15c779..d8b377f 100644 --- a/modules/role/manifests/cryptoportfolio/bot.pp +++ b/modules/role/manifests/cryptoportfolio/bot.pp @@ -56,12 +56,12 @@ class role::cryptoportfolio::bot inherits role::cryptoportfolio { cron { "py-cryptoportfolio-before": ensure => present, - command => "cd $cf_bot_app ; python main.py --config $cf_bot_app_conf --before", + command => "cd $cf_bot_app ; python main.py --quiet --config $cf_bot_app_conf --before", user => $user, weekday => 7, # Sunday hour => 22, minute => 30, - environment => ["HOME=${home}","PATH=/usr/bin/"], + environment => ["HOME=${home}","PATH=/usr/bin/","CRON_TZ=UTC"], require => [ File[$cf_bot_app_conf], Archive["${home}/trader_${bot_version}.tar.gz"] @@ -70,12 +70,12 @@ class role::cryptoportfolio::bot inherits role::cryptoportfolio { cron { "py-cryptoportfolio-after": ensure => present, - command => "cd $cf_bot_app ; python main.py --config $cf_bot_app_conf --after", + command => "cd $cf_bot_app ; python main.py --quiet --config $cf_bot_app_conf --after", user => $user, weekday => 1, # Monday - hour => 1, + hour => 0, minute => 0, - environment => ["HOME=${home}","PATH=/usr/bin/"], + environment => ["HOME=${home}","PATH=/usr/bin/","CRON_TZ=UTC"], require => [ File[$cf_bot_app_conf], Archive["${home}/trader_${bot_version}.tar.gz"] -- 2.41.0