aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-26 08:47:51 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-26 08:47:51 +0100
commit9a6b009844e50f8a1f36e761e67b1a481685b427 (patch)
treeed9f39642435ca6294a0992dc8b165da2058dfc0 /modules
parentd363fabbd90134e0fb9a142222f389e14ad36171 (diff)
downloadPuppet-9a6b009844e50f8a1f36e761e67b1a481685b427.tar.gz
Puppet-9a6b009844e50f8a1f36e761e67b1a481685b427.tar.zst
Puppet-9a6b009844e50f8a1f36e761e67b1a481685b427.zip
Fix crontab
Diffstat (limited to 'modules')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index ee1c74f..32b6ac7 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -227,7 +227,11 @@ class role::cryptoportfolio {
227 owner => $cf_user, 227 owner => $cf_user,
228 group => $cf_group, 228 group => $cf_group,
229 mode => "0600", 229 mode => "0600",
230 content => template("role/cryptoportfolio/bot_config.ini.erb") 230 content => template("role/cryptoportfolio/bot_config.ini.erb"),
231 require => [
232 User[$cf_user],
233 Archive["${cf_home}/${bot_version}.tar.gz"],
234 ],
231 } 235 }
232 236
233 cron { "py-cryptoportfolio-before": 237 cron { "py-cryptoportfolio-before":
@@ -250,6 +254,7 @@ class role::cryptoportfolio {
250 user => "cryptoportfolio", 254 user => "cryptoportfolio",
251 weekday => 1, # Monday 255 weekday => 1, # Monday
252 hour => 1, 256 hour => 1,
257 minute => 0,
253 environment => ["HOME=${cf_home}","PATH=/usr/bin/"], 258 environment => ["HOME=${cf_home}","PATH=/usr/bin/"],
254 require => [ 259 require => [
255 File[$cf_bot_app_conf], 260 File[$cf_bot_app_conf],
@@ -258,6 +263,8 @@ class role::cryptoportfolio {
258 } 263 }
259 } 264 }
260 265
266 # FIXME: incorrect build for go app
267 # FIXME: restore backup
261 unless empty($front_version) { 268 unless empty($front_version) {
262 ensure_packages(["go", "npm", "nodejs", "yarn"]) 269 ensure_packages(["go", "npm", "nodejs", "yarn"])
263 270
@@ -284,7 +291,7 @@ class role::cryptoportfolio {
284 checksum => $front_sha256, 291 checksum => $front_sha256,
285 cleanup => false, 292 cleanup => false,
286 extract => true, 293 extract => true,
287 user => "cryptoportfolio", 294 user => $cf_user,
288 username => $facts["ec2_metadata"]["hostname"], 295 username => $facts["ec2_metadata"]["hostname"],
289 password => generate_password(24, $password_seed, "ldap"), 296 password => generate_password(24, $password_seed, "ldap"),
290 extract_path => $cf_front_app, 297 extract_path => $cf_front_app,