]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add npm module and missing path
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Feb 2018 21:20:32 +0000 (22:20 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Feb 2018 21:51:13 +0000 (22:51 +0100)
.gitmodules
modules/nodejs [new submodule]
modules/role/manifests/cryptoportfolio.pp

index 35df238de1c2369fefab911eea9d6e4bd853e2f9..fa5163a1ffcfe8ffe2f88b23bc3bc38ebd25e3f4 100644 (file)
@@ -40,6 +40,9 @@
 [submodule "modules/letsencrypt"]
        path = modules/letsencrypt
        url = git://git.immae.eu/github/voxpupuli/puppet-letsencrypt.git
+[submodule "modules/nodejs"]
+       path = modules/nodejs
+       url = git://git.immae.eu/github/voxpupuli/puppet-nodejs
 [submodule "python/ovh"]
        path = python/ovh
        url = git://git.immae.eu/github/ovh/python-ovh
diff --git a/modules/nodejs b/modules/nodejs
new file mode 160000 (submodule)
index 0000000..c771342
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit c77134280b7e30f3c8a94448e04de5c238e6c89c
index 5e18ac031116c20ae35e239b44003fb25680252b..d670486362adf528e0a91a4a4225b005f7b306fb 100644 (file)
@@ -304,6 +304,7 @@ class role::cryptoportfolio {
     exec { "web-cryptoportfolio-build":
       cwd         => "${cf_front_app}/cmd/web",
       environment => ["HOME=${cf_home}"],
+      path        => ["${cf_front_app}/cmd/web/node_modules/.bin/", "/usr/bin"],
       command     => "/usr/bin/make static ENV=${cf_env}",
       creates     => "${cf_front_app}/cmd/web/build/static",
       require     => [File[$cf_front_app_static_conf], Exec["web-cryptoportfolio-dependencies"]]