From a5f4e699d440bd7da409eb7c600ace38d4a86223 Mon Sep 17 00:00:00 2001 From: Christoph Kluenter Date: Thu, 29 Jan 2015 15:52:53 +0100 Subject: run setup py on login we need to create some egg files for the user-agent before everything works --- .../modules/pixelated/files/activate_custom_node_modules.sh | 5 +++++ provisioning/modules/pixelated/manifests/source.pp | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'provisioning/modules') diff --git a/provisioning/modules/pixelated/files/activate_custom_node_modules.sh b/provisioning/modules/pixelated/files/activate_custom_node_modules.sh index 6508053d..1652b709 100755 --- a/provisioning/modules/pixelated/files/activate_custom_node_modules.sh +++ b/provisioning/modules/pixelated/files/activate_custom_node_modules.sh @@ -26,3 +26,8 @@ if [ ! -e $VAGRANT_NODE_MODULES ] ; then fi +source ${virtualenv_path}/bin/activate + +cd /vagrant/service +python setup.py develop >/dev/null +cd /vagrant diff --git a/provisioning/modules/pixelated/manifests/source.pp b/provisioning/modules/pixelated/manifests/source.pp index d740bc86..e1dc7844 100644 --- a/provisioning/modules/pixelated/manifests/source.pp +++ b/provisioning/modules/pixelated/manifests/source.pp @@ -37,13 +37,6 @@ class pixelated::source { timeout => 0 } - exec { 'add_virtualenv_to_bashrc': - command => "/bin/bash -c 'echo \"source ${virtualenv_path}/bin/activate ; cd /vagrant\" >> /home/vagrant/.bashrc'", - unless => "/bin/grep \"source ${virtualenv_path}\" /home/vagrant/.bashrc", - user => 'vagrant', - require => Exec['install-pixelated'] - } - file { '/home/vagrant/.activate_custom_node_modules.sh': owner => 'vagrant', mode => '0600', -- cgit v1.2.3