diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-07-14 09:38:57 +0200 |
---|---|---|
committer | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-07-14 09:38:57 +0200 |
commit | db6e609fa8afdbe2ed6f32789b25ce98625330bc (patch) | |
tree | 5191bb3b13f27413e842d5e2a2f829ce5ef3a317 /provisioning | |
parent | 01892a6162be5913a35a6a2c3a19a0b0ca8cbfd8 (diff) |
set NODE_PATH in shell
See #751
Diffstat (limited to 'provisioning')
-rw-r--r-- | provisioning/modules/pixelated/manifests/source/install_useragent.pp | 5 |
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', + } } |