diff options
Diffstat (limited to 'modules/role')
-rw-r--r-- | modules/role/manifests/cryptoportfolio/bot.pp | 10 |
1 files 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 { | |||
56 | 56 | ||
57 | cron { "py-cryptoportfolio-before": | 57 | cron { "py-cryptoportfolio-before": |
58 | ensure => present, | 58 | ensure => present, |
59 | command => "cd $cf_bot_app ; python main.py --config $cf_bot_app_conf --before", | 59 | command => "cd $cf_bot_app ; python main.py --quiet --config $cf_bot_app_conf --before", |
60 | user => $user, | 60 | user => $user, |
61 | weekday => 7, # Sunday | 61 | weekday => 7, # Sunday |
62 | hour => 22, | 62 | hour => 22, |
63 | minute => 30, | 63 | minute => 30, |
64 | environment => ["HOME=${home}","PATH=/usr/bin/"], | 64 | environment => ["HOME=${home}","PATH=/usr/bin/","CRON_TZ=UTC"], |
65 | require => [ | 65 | require => [ |
66 | File[$cf_bot_app_conf], | 66 | File[$cf_bot_app_conf], |
67 | Archive["${home}/trader_${bot_version}.tar.gz"] | 67 | Archive["${home}/trader_${bot_version}.tar.gz"] |
@@ -70,12 +70,12 @@ class role::cryptoportfolio::bot inherits role::cryptoportfolio { | |||
70 | 70 | ||
71 | cron { "py-cryptoportfolio-after": | 71 | cron { "py-cryptoportfolio-after": |
72 | ensure => present, | 72 | ensure => present, |
73 | command => "cd $cf_bot_app ; python main.py --config $cf_bot_app_conf --after", | 73 | command => "cd $cf_bot_app ; python main.py --quiet --config $cf_bot_app_conf --after", |
74 | user => $user, | 74 | user => $user, |
75 | weekday => 1, # Monday | 75 | weekday => 1, # Monday |
76 | hour => 1, | 76 | hour => 0, |
77 | minute => 0, | 77 | minute => 0, |
78 | environment => ["HOME=${home}","PATH=/usr/bin/"], | 78 | environment => ["HOME=${home}","PATH=/usr/bin/","CRON_TZ=UTC"], |
79 | require => [ | 79 | require => [ |
80 | File[$cf_bot_app_conf], | 80 | File[$cf_bot_app_conf], |
81 | Archive["${home}/trader_${bot_version}.tar.gz"] | 81 | Archive["${home}/trader_${bot_version}.tar.gz"] |