From c17e63ed33a5260ea5bf0f869d7dce39676526cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 4 Mar 2018 21:05:42 +0100 Subject: [PATCH 1/1] Fix user for build --- modules/role/manifests/cryptoportfolio.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { checksum => $bot_sha256, cleanup => false, extract => true, - user => "cryptoportfolio", + user => $cf_user, username => $facts["ec2_metadata"]["hostname"], password => generate_password(24, $password_seed, "ldap"), extract_path => $cf_bot_app, @@ -373,6 +373,7 @@ class role::cryptoportfolio { exec { "web-cryptoportfolio-dependencies": cwd => "${cf_front_app}/cmd/web", + user => $cf_user, environment => ["HOME=${cf_home}"], command => "/usr/bin/make install", refreshonly => true, @@ -380,6 +381,7 @@ class role::cryptoportfolio { } ~> exec { "web-cryptoportfolio-build": cwd => "${cf_front_app}/cmd/web", + user => $cf_user, environment => ["HOME=${cf_home}"], path => ["${cf_front_app}/cmd/web/node_modules/.bin/", "/usr/bin"], command => "/usr/bin/make static ENV=${cf_env}", -- 2.41.0