aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-26 00:24:47 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-26 00:24:47 +0200
commit7f1244c8c2a418ed9e978f098c73f8697e2cd306 (patch)
treef40a8e428b531b91f6b0402c2c0ef95a3439651f
parentb25f92f04dd83a7051a82137bf38c299053ed482 (diff)
downloadPuppet-7f1244c8c2a418ed9e978f098c73f8697e2cd306.tar.gz
Puppet-7f1244c8c2a418ed9e978f098c73f8697e2cd306.tar.zst
Puppet-7f1244c8c2a418ed9e978f098c73f8697e2cd306.zip
Make bot quiet and use timezone to have correct start time
-rw-r--r--modules/role/manifests/cryptoportfolio/bot.pp10
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"]