summaryrefslogtreecommitdiff
path: root/provisioning/modules/pixelated
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2016-07-14 09:38:57 +0200
committerChristoph Kluenter <ckluente@thoughtworks.com>2016-07-14 09:38:57 +0200
commitdb6e609fa8afdbe2ed6f32789b25ce98625330bc (patch)
tree5191bb3b13f27413e842d5e2a2f829ce5ef3a317 /provisioning/modules/pixelated
parent01892a6162be5913a35a6a2c3a19a0b0ca8cbfd8 (diff)
set NODE_PATH in shell
See #751
Diffstat (limited to 'provisioning/modules/pixelated')
-rw-r--r--provisioning/modules/pixelated/manifests/source/install_useragent.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/provisioning/modules/pixelated/manifests/source/install_useragent.pp b/provisioning/modules/pixelated/manifests/source/install_useragent.pp
index a2473b3a..f8e9690a 100644
--- a/provisioning/modules/pixelated/manifests/source/install_useragent.pp
+++ b/provisioning/modules/pixelated/manifests/source/install_useragent.pp
@@ -29,4 +29,9 @@ class pixelated::source::install_useragent {
user => 'vagrant',
require => [Exec['install-pixelated'], File['/home/vagrant/activate_custom_node_modules.sh']]
}
+ exec { 'add_custom_node_path_to_bashrc':
+ command => "/bin/bash -c 'echo NODE_PATH=/home/vagrant/boxed_node_modules/node_modules/ >> /home/vagrant/.bashrc'",
+ unless => "/bin/grep NODE_PATH /home/vagrant/.bashrc",
+ user => 'vagrant',
+ }
}