From: Ismaƫl Bouya Date: Sat, 24 Feb 2018 21:20:32 +0000 (+0100) Subject: Add npm module and missing path X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6d512d3fc73ece6aba5842e73b3b662cd904433d;p=perso%2FImmae%2FProjets%2FPuppet.git Add npm module and missing path --- diff --git a/.gitmodules b/.gitmodules index 35df238..fa5163a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 index 0000000..c771342 --- /dev/null +++ b/modules/nodejs @@ -0,0 +1 @@ +Subproject commit c77134280b7e30f3c8a94448e04de5c238e6c89c diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 5e18ac0..d670486 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp @@ -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"]]