From: Ismaƫl Bouya Date: Sun, 4 Mar 2018 20:05:42 +0000 (+0100) Subject: Fix user for build X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c17e63ed33a5260ea5bf0f869d7dce39676526cb;p=perso%2FImmae%2FProjets%2FPuppet.git Fix user for build --- 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}",