Wes, I'd suggest using a pyhton virtual env manager, like virtualenv. Here is a cut-n-paste from a README I have. Hopefully this will make it a bit easier (yes, this does presume you're on Linux or Mac):
Install virtualenv by doing the following (check the URL for the actual version of virtualenv you want): $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz $ tar xvfz virtualenv-X.X.tar.gz By default, virtualenv will use the system installed version of python and create an env for that. I usually put my envs in $HOME/.virtualenv/<version>. So, for python 2.7 my virtualenv location is $HOME/.virtualenv/2.7/. $ virtualenv-X.X/virtualenv.py $HOME/.virtualenv/2.7 You need to do this to activate the environment. Optionally put this in .bash_profile: $ . $HOME/.virtualenv/2.7/bin/activate Your command prompt should change to reflect the version you have activated. Install required packages (fabric, requests and behave):: $ pip install --proxy proxy.eng.vmware.com:3128 fabric requests behave Hope this helps. --Jens On Tue, Jun 9, 2015 at 9:16 AM, Wes Williams <[email protected]> wrote: > I went to use fabric and here is what I'm faced with installing before I > start step 1: > > - the Python programming language; > - the setuptools packaging/installation library; > - pip > - the Python Paramiko <http://paramiko.org/> SSH library; > - and Paramiko’s dependency, the PyCrypto cryptography library. > > > - the multiprocessing > <http://www.fabfile.org/installing.html#multiprocessing> library. > > > - the ecdsa <https://pypi.python.org/pypi/ecdsa/> library > > Do we have a distributed deployment option where the customer doesn't have > to download and install so much stuff? It seems like using bash scripts > with massh is lighter weight since most are familiar with scripts and we > can easily package massh. > > What happened to simple bash and massh? > > > > *Wes Williams | Pivotal Sr. **Data Engineer* > 781.606.0325 > http://pivotal.io/big-data/pivotal-gemfire > > On Wed, Jun 3, 2015 at 11:11 PM, Gregory Chase <[email protected]> wrote: > > > Thanks Jens! > > Its really a matter of how much time you want to put into it. > > > > 2 to 4 slides - problem statement, solution description, technical > > benefits, architecture. PPT is easiest for most people. > > > > A sample demo would be awesome, just showing what the framework could do. > > > > Assume you have 20 minutes including demo and question. > > > > And if you have time and want your work to spread to others, post the > > artifacts in editable form into a public Github - yours, Apache Geode, > > Pivotal Open Source Hub... > > > > We're looking at either June 16 or June 23 for the next virtual meetup. > Not > > sure about the venue yet - just know it won't be Webex again :) Maybe > > Google Hangout, Maybe On24. > > > > -Greg > > > > On Wed, Jun 3, 2015 at 7:32 PM, Jens Deppe <[email protected]> wrote: > > > > > Sure - I'd be happy to do that; let me know what you'd like to see and > > what > > > format it should be in. > > > > > > --Jens > > > > > > On Wed, Jun 3, 2015 at 7:28 PM, Greg Chase <[email protected]> wrote: > > > > > > > Well this is a really good subject. Pivotal Open-Source Hub is > > organizing > > > > our next virtual meet up. And we are looking for a couple of short > deep > > > > dive technical topics. This one seems perfect. Would one of you be > > > willing > > > > to throw together a couple of slides and maybe a demo Corey this can > > > really > > > > help other Geode users. > > > > > > > > This email encrypted by tiny buttons & fat thumbs, beta voice > > > recognition, > > > > and autocorrect on my iPhone. > > > > > > > > > On Jun 3, 2015, at 7:14 PM, Luke Shannon <[email protected]> > > wrote: > > > > > > > > > > NICE! > > > > > > > > > >> On Wed, Jun 3, 2015 at 10:09 PM, Jens Deppe <[email protected]> > > > wrote: > > > > >> > > > > >> Luke, didn't I send you my fabric scripts from a while back? > > > > >> > > > > >> Attached is an example which was used for GemFireXD (now not > > available > > > > any > > > > >> more), but most of the structure remains the same. > > > > >> > > > > >> Another nice feature is that fabric lets you run jobs in parallel; > > > I've > > > > >> been able to start up 100+ node clusters this way in under a > minute. > > > > >> > > > > >> --Jens > > > > >> > > > > >> On Wed, Jun 3, 2015 at 6:01 PM, Abtin Afshar < > > [email protected]> > > > > >> wrote: > > > > >> > > > > >>> Hi Randy, > > > > >>> > > > > >>> You can actually do a lot with Fabric. I hacked a quick script to > > > > >>> download gemfire logs, stats, thread dumps and zip them up from > any > > > > cluster > > > > >>> I want (dev,sit, uat). Beauty of it is that you only need to > > install > > > > it in > > > > >>> you local machine (in my case my Linux VM) and it uses ssh under > > the > > > > hood. > > > > >>> You can also add any python goodness to your script and control > > your > > > > >>> cluster with a simple command. > > > > >>> > > > > >>> Cheers! > > > > >>> Abtin > > > > >>> > > > > >>> > > > > >>>> On Jun 3, 2015, at 3:41 PM, Randy May <[email protected]> > > wrote: > > > > >>>> > > > > >>>> Thats funny. I was just looking for something exactly like this > to > > > > help > > > > >>> me > > > > >>>> out with build automation at a client. Thanks for sharing! > > > > >>>> > > > > >>>>> On Wed, Jun 3, 2015 at 2:50 PM Luke Shannon < > [email protected] > > > > > > > >>>> wrote: > > > > >>>> > > > > >>>>> I was just working with a client who is using this framework to > > > > manage > > > > >>> all > > > > >>>>> their distributed geode processes (mainly capturing log and > stats > > > > >>> files for > > > > >>>>> trouble shooting but also parallel starts to recover from > > > > persistence). > > > > >>>>> > > > > >>>>> http://www.fabfile.org/ > > > > >>>>> > > > > >>>>> I have come across tons of custom shell script solutions to do > > this > > > > >>> sort of > > > > >>>>> thing, and have played with Ansible myself (which is great). > This > > > one > > > > >>> look > > > > >>>>> interesting. You can write Python, but you can also do a DSL > that > > > > looks > > > > >>>>> like this: > > > > >>>>> > > > > >>>>> from fabric.api import * > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> env.hosts = ['cache_server1', 'cache_server2'] > > > > >>>>> > > > > >>>>> env.user = 'my_user' > > > > >>>>> > > > > >>>>> env.password = 'my_pass' > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> def download_log(): > > > > >>>>> > > > > >>>>> with settings(warn_only=True): > > > > >>>>> > > > > >>>>> cd('/gemfire/cache/): > > > > >>>>> > > > > >>>>> > get('mycache.log') > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> -- > > > > >>>>> Luke Shannon | Sr. Field Engineer - Toronto | Pivotal > > > > >>> > > > > > > ------------------------------------------------------------------------- > > > > >>>>> Join the Toronto Pivotal Usergroup: > > > > >>>>> http://www.meetup.com/Toronto-Pivotal-User-Group/ > > > > > > > > > > > > > > > -- > > > > > Luke Shannon | Sr. Field Engineer - Toronto | Pivotal > > > > > > > > > ------------------------------------------------------------------------- > > > > > Mobile:416-571-9495 > > > > > Join the Toronto Pivotal Usergroup: > > > > > http://www.meetup.com/Toronto-Pivotal-User-Group/ > > > > > > > > > > > > > > > -- > > Greg Chase > > > > Director of Product Marketing | Big Data > > http://www.pivotal.io/big-data > > > > Pivotal Software > > http://www.pivotal.io/ > > > > 650-215-0477 > > @GregChase > > Blog: http://geekmarketing.biz/ > > >
