From db6e609fa8afdbe2ed6f32789b25ce98625330bc Mon Sep 17 00:00:00 2001 From: Christoph Kluenter Date: Thu, 14 Jul 2016 09:38:57 +0200 Subject: set NODE_PATH in shell See #751 --- provisioning/modules/pixelated/manifests/source/install_useragent.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'provisioning/modules/pixelated/manifests/source') 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', + } } -- cgit v1.2.3