aboutsummaryrefslogtreecommitdiff
path: root/modules/role/manifests/cryptoportfolio.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 21:05:42 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 21:19:38 +0100
commitc17e63ed33a5260ea5bf0f869d7dce39676526cb (patch)
tree6c3b46adcdadcd75aada126cacf0a36202f31e3e /modules/role/manifests/cryptoportfolio.pp
parent3f868d0b4f48e75aeed56a13f3c4053bac9108f0 (diff)
downloadPuppet-c17e63ed33a5260ea5bf0f869d7dce39676526cb.tar.gz
Puppet-c17e63ed33a5260ea5bf0f869d7dce39676526cb.tar.zst
Puppet-c17e63ed33a5260ea5bf0f869d7dce39676526cb.zip
Fix user for build
Diffstat (limited to 'modules/role/manifests/cryptoportfolio.pp')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 5fb0438..6c760b5 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -203,7 +203,7 @@ class role::cryptoportfolio {
203 checksum => $bot_sha256, 203 checksum => $bot_sha256,
204 cleanup => false, 204 cleanup => false,
205 extract => true, 205 extract => true,
206 user => "cryptoportfolio", 206 user => $cf_user,
207 username => $facts["ec2_metadata"]["hostname"], 207 username => $facts["ec2_metadata"]["hostname"],
208 password => generate_password(24, $password_seed, "ldap"), 208 password => generate_password(24, $password_seed, "ldap"),
209 extract_path => $cf_bot_app, 209 extract_path => $cf_bot_app,
@@ -373,6 +373,7 @@ class role::cryptoportfolio {
373 373
374 exec { "web-cryptoportfolio-dependencies": 374 exec { "web-cryptoportfolio-dependencies":
375 cwd => "${cf_front_app}/cmd/web", 375 cwd => "${cf_front_app}/cmd/web",
376 user => $cf_user,
376 environment => ["HOME=${cf_home}"], 377 environment => ["HOME=${cf_home}"],
377 command => "/usr/bin/make install", 378 command => "/usr/bin/make install",
378 refreshonly => true, 379 refreshonly => true,
@@ -380,6 +381,7 @@ class role::cryptoportfolio {
380 } ~> 381 } ~>
381 exec { "web-cryptoportfolio-build": 382 exec { "web-cryptoportfolio-build":
382 cwd => "${cf_front_app}/cmd/web", 383 cwd => "${cf_front_app}/cmd/web",
384 user => $cf_user,
383 environment => ["HOME=${cf_home}"], 385 environment => ["HOME=${cf_home}"],
384 path => ["${cf_front_app}/cmd/web/node_modules/.bin/", "/usr/bin"], 386 path => ["${cf_front_app}/cmd/web/node_modules/.bin/", "/usr/bin"],
385 command => "/usr/bin/make static ENV=${cf_env}", 387 command => "/usr/bin/make static ENV=${cf_env}",