diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2015-01-29 15:52:53 +0100 |
---|---|---|
committer | Christoph Kluenter <ckluente@thoughtworks.com> | 2015-01-29 15:53:37 +0100 |
commit | a5f4e699d440bd7da409eb7c600ace38d4a86223 (patch) | |
tree | b3ad73ace7d928932a180e36f77164caa9a479c1 /provisioning/modules | |
parent | 29d21251e9ff36578e4e72338da86b6090da9f3b (diff) |
run setup py on login
we need to create some egg files for the user-agent before everything works
Diffstat (limited to 'provisioning/modules')
-rwxr-xr-x | provisioning/modules/pixelated/files/activate_custom_node_modules.sh | 5 | ||||
-rw-r--r-- | provisioning/modules/pixelated/manifests/source.pp | 7 |
2 files changed, 5 insertions, 7 deletions
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', |