]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix user for build
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 20:05:42 +0000 (21:05 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 20:19:38 +0000 (21:19 +0100)
modules/role/manifests/cryptoportfolio.pp

index 5fb0438956091c9420f3d9878c947c1bad25edb0..6c760b580c9b0c9327e36a97fe85af492f275e08 100644 (file)
@@ -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}",