[Puppet Users] Re: puppet, virtualenv, and .bashrc

2012-02-09 Thread jcbollinger
On Feb 8, 2:13 pm, kevin c wrote: > Thanks John, > >     exec { 'panama-eggs': >         path    => ["/bin","/usr/bin","/usr/local/python/bin"], >         environment => ['WORKON_HOME=/home/panama/.virtualenvs', > 'PIP_LOG_FILE=/tmp/pip-freeze-prod.log', 'PIP_VIRTUALENV_BASE=/home/ > panama/.vir

[Puppet Users] Re: puppet, virtualenv, and .bashrc

2012-02-08 Thread kevin c
Thanks John, exec { 'panama-eggs': path=> ["/bin","/usr/bin","/usr/local/python/bin"], environment => ['WORKON_HOME=/home/panama/.virtualenvs', 'PIP_LOG_FILE=/tmp/pip-freeze-prod.log', 'PIP_VIRTUALENV_BASE=/home/ panama/.virtualenvs', 'VIRTUALENVWRAPPER_PYTHON=/usr/local/py

[Puppet Users] Re: puppet, virtualenv, and .bashrc

2012-02-08 Thread jcbollinger
On Feb 8, 6:17 am, kevin c wrote: > Morning, > > I am trying to do some environment setup on our developer's virtual > boxes that we use vagrant+puppet to build.  We install a python app, > create virtualenv's for the different pip requirements, etc. > > Problem is that there are some custom bas

[Puppet Users] Re: puppet, virtualenv, and .bashrc

2012-02-08 Thread kevin c
Would something along the lines of: {code} command => "bash -l -c 'sudo su - panama && workon dev && mmf_eggs'", {code} work? -Kevin On Feb 8, 6:17 am, kevin c wrote: > Morning, > > I am trying to do some environment setup on our developer's virtual > boxes that we use vagrant+puppet to build.