Re: [Fab-user] private variable

2010-07-31 Thread Morgan Goose
What is your issue with this? That specific call is using the parmiko library instances, and as such needs to leverage some of the methods provided on it's instance. Thing is, as a user of fabric, you don't have the need to use that directly. Any connectivity work like that is taken care of for

Re: [Fab-user] order control]

2010-10-14 Thread Morgan Goose
and then go through the rest of the list in order. -- ¤¤ ¤ kyoboku kazeoshi ¤ ¤¤ From: Morgan Goose [morgan.go...@gmail.com] Sent: Thursday, October 14, 2010 9:26 To: Jeff Honey Subject: Re: [Fab-user] order control

Re: [Fab-user] redirecting output.

2010-10-18 Thread Morgan Goose
If you want to capture stdout and stderr on the the cli and pipe it to a file you can use tee like was suggested and some bash fu: If you don't need it to display: yourcommand filename or if you do: yourcommand 2$1 | tee filename

Re: [Fab-user] An issue regarding the sequence of printed messages

2010-10-21 Thread Morgan Goose
Youd could hide the fabric ouput with in the scope of the command and just manually print out the executing line to your liking before the call: with settings(hide=everything): print Executing %s... % command run(command) goose On Thu, Oct 21, 2010 at 07:38:55PM -0400, Yungwei Chen

Re: [Fab-user] external role definitions

2010-11-18 Thread Morgan Goose
Sounds cool, you have it up anywhere (gihub/bitbucket/googlecode/etc)? goose On Thu, Nov 18, 2010 at 10:04:26PM +, Michael Gliwinski wrote: Hello fab(ulous) people! I've been using Fabric for a while now but am new to the list. I'm just catching up with archives and I've noticed that

Re: [Fab-user] Putting Folders

2011-02-01 Thread Morgan Goose
Until the new features come out, people just use whatever to make an archive of the folder and then just uncompress the archive on the remote machine, or use rsync. goose On Tue, Feb 01, 2011 at 12:39:18PM +0530, Abhishek Kona wrote: Hi There does not seem to be any api to 'put' a folder to

Re: [Fab-user] howto run fab task from python script?

2011-05-07 Thread Morgan Goose
here you go, http://docs.fabfile.org/en/1.0.1/usage/library.html On Sat, May 07, 2011 at 06:51:28PM +0200, Aljoša Mohorović wrote: i've been searching in docs but didn't find anything although i remember reading something about it. could somebody point to where in docs is described how can i

Re: [Fab-user] Running a fabric script over a SOCKS proxy?

2011-05-10 Thread Morgan Goose
You're most likely going to have to shell out to local. I can't see paramiko supporting that if it doesn't support agent forwarding, or tunnels. goose On Tue, May 10, 2011 at 11:18:39AM +0100, James Turnbull wrote: I have a SOCKS proxy setup to a gateway server which is created by setting up

Re: [Fab-user] fab version

2011-10-24 Thread Morgan Goose
Have you read any of the docs online yet or at least the tutorial? A lot of your questions would be answered by the documentation that was written specifically to adress the common use cases. - goose On Mon, Oct 24, 2011 at 11:58 AM, Kaushal Shriyan kaushalshri...@gmail.com wrote: On Mon, Oct

Re: [Fab-user] ssh.transport

2012-03-16 Thread Morgan Goose
Do you have a full stacktrace to send out, and perhaps more info on how you're using/running the fab task? -goose On Fri, Mar 16, 2012 at 4:56 PM, Maximilia Black maxietbl...@yahoo.com wrote: Hi, I'm having an error when I try to connect to one of my servers through fabric.  I keep getting

Re: [Fab-user] Launch many parallel tasks against a single (local) host

2012-03-27 Thread Morgan Goose
tee...@gmail.com wrote: On Tue, Mar 27, 2012 at 1:13 PM, Morgan Goose morgan.go...@gmail.com wrote: What is it you even mean by staging? You might be over looking GNU commands that will do exactly what you need. If you give us some more information, we might be able to assist. -goose Hi

Re: [Fab-user] Launch many parallel tasks against a single (local) host

2012-03-27 Thread Morgan Goose
wrote: On Tue, Mar 27, 2012 at 3:24 PM, Morgan Goose morgan.go...@gmail.com wrote: Use xargs: def parallel_local(cmd, list_of_args, procs=4):    local(echo '%s' | xargs -P %d -n1 %s % ( .join(list_of_args), num_of_procs, cmd)) I find that most everything you wanna do has a gnu command

Re: [Fab-user] Password prompt issues on parallel execution.

2012-04-04 Thread Morgan Goose
Don't use interactive with parallel. Use ssh keys and or an ssh-agent. No good things will come from that use case, as the parallel execution aims at serving larger lists of hosts (100+). -goose On Wed, Apr 4, 2012 at 5:55 AM, Rohr, David david.r...@dice.se wrote: Hey all. I got a weird

Re: [Fab-user] Wait for parallel task to complete

2012-04-26 Thread Morgan Goose
First have you read the tutorial? This is the section that will get you in on host list defining, and point you the the more detailed information that I link to below it: http://docs.fabfile.org/en/1.4.1/tutorial.html#defining-connections-beforehand

Re: [Fab-user] Wait for parallel task to complete

2012-04-26 Thread Morgan Goose
As that will be sequential and honor the host list as well. It will also run the test on all hosts before moving to the next task listed, update. -goose On Thu, Apr 26, 2012 at 3:25 PM, Morgan Goose morgan.go...@gmail.com wrote: First have you read the tutorial? This is the section that will get

Re: [Fab-user] Wait for parallel task to complete

2012-05-01 Thread Morgan Goose
to make sure that deploy is always called with empty host list and I need to find a way to specify hosts from command line for the subtasks. -- anatoly t. On Fri, Apr 27, 2012 at 11:48 PM, Morgan Goose morgan.go...@gmail.com wrote: The example I gave you and how to run it did all of those

Re: [Fab-user] 1.4.1 Sudo issue

2012-05-01 Thread Morgan Goose
Do you have a stacktrace? Or do you have any log output from the specific machine? -goose On Tue, May 1, 2012 at 1:51 PM, JA atkins.jac...@gmail.com wrote: Hello Everyone; I am seeing very peculiar behavior when executing sudo.  When I attempt to execute against a set of hosts, sometimes one

Re: [Fab-user] Fabric and SSH question

2012-05-03 Thread Morgan Goose
set up your terminal to do this for you: $ cat ~/.zlogin eval `keychain --eval --agents ssh --inherit any id_rsa --quiet` -goose On Thu, May 3, 2012 at 7:31 AM, JA atkins.jac...@gmail.com wrote: Hi Everyone; I would so appreciate any help with this question How do I get Fabric to

Re: [Fab-user] Create Dynamic env.hosts at runtime

2012-05-04 Thread Morgan Goose
You can use roles or hosts with callables as long as they return lists. Being that Fabric is just python, you have all the tools and libraries that python provides for populating this list. Some people query databases, some use flat files with host lists, others use things like cuisine to work off

Re: [Fab-user] running a different command for each host in one task

2012-05-11 Thread Morgan Goose
I'm going to jump on the thread only for the fact that I'm also a Morgan. -goose On Fri, May 11, 2012 at 12:16 PM, Comète com...@daknet.org wrote: Hi, thanks to Jeff, Marcelo and Peter for the help ;) the answer was indeed to use execute as you told me and it works ! Thanks again guys

Re: [Fab-user] Output in parallel mode.

2012-05-15 Thread Morgan Goose
This should help: http://docs.fabfile.org/en/1.4.2/usage/parallel.html#linewise-vs-bytewise-output -goose On Tue, May 15, 2012 at 7:20 AM, David Röhr da...@rohr.se wrote: I've tried looking at some documentation to handle the output when running in parallel mode but can't seem to find anything

Re: [Fab-user] Usage of parallel option in fabric

2012-05-20 Thread Morgan Goose
use execute for switching on the fly if the fab -P/--parallel flag doesn't work for you: def foo(): pass @task def bar(): execute(parallel(foo), hosts=host_list) execute(foo, hosts=other_host_list) On the second question, what are you actually asking? Also we use multiprocessing

Re: [Fab-user] Looking for speakers for our SF Bay Area LSPE July Meetup - topic Command and Control/ Parallel Command Mechanism

2012-07-03 Thread Morgan Goose
What are you looking for in a presentation? I'd be willing to talk about the parallel execution in Fabric. -goose On Tue, Jul 3, 2012 at 12:30 PM, Seema Chetty see...@yahoo-inc.com wrote: Dear Fab community, My name is Seema and I am part of the team responsible for organizing the speakers

Re: [Fab-user] How to install softwares parallel

2012-07-13 Thread Morgan Goose
Use ssh keys to keep from having passwords. If the usernames change per host/ip you can do some python stuff to help out, but if it's the same all over, say root or installer, that's simple. defining a range is simpler too if you use a list comprehension: env.hosts = ['192.168.0.%d % x for x in

Re: [Fab-user] Decorators override CLI?

2012-08-15 Thread Morgan Goose
Shit sorry, I'd answered him, I just keep forgetting gmail doesn't reply all by default. though we're pretty much identical: I'll link you to the order of precedence section in the docs: http://docs.fabfile.org/en/1.4.3/usage/execution.html#order-of-precedence Which explains more about why