Pull request for exclude_hosts feature #170

Closed
bitprophet opened this Issue Aug 19, 2011 · 3 comments

1 participant

@bitprophet
Fabric member

Description

I've added an option -x / --exclude-hosts which allows you to specify a list of hosts on the command line to exclude from the calculated hosts list (after roles, etc).

It also works in the expected way:
fab some_func:hosts=a;b,exclude_hosts=a That only runs some_func on host b.

This is handy if you have a huge role and want to just exclude one or two hosts from it.

My fork is here: http://github.com/kcbanner/fabric

-Casey


Originally submitted by Casey Banner (kcbanner) on 2010-05-27 at 03:42pm EDT


Closed as Done on 2011-04-22 at 08:18pm EDT

@bitprophet bitprophet was assigned Aug 19, 2011
@bitprophet
Fabric member

Rick Harding (mitechie) posted:


I've rebased his github fork off of the latest master and placed it in a branch to pull from at
https://github.com/mitechie/fabric/tree/170-exclude-hosts


on 2011-03-14 at 12:08pm EDT

@bitprophet
Fabric member

Morgan Goose (goosemo) posted:


Needed docs, and a bit more work, as I was getting a failing test. Fixed all that, and merged it into my 1.1 branch. The sperate changes can be found here


on 2011-04-05 at 07:29pm EDT

@bitprophet
Fabric member

Jeff Forcier (bitprophet) posted:


Beefed up docs a bunch more, looks good now.


on 2011-04-22 at 08:18pm EDT

@bitprophet bitprophet closed this Aug 19, 2011
@ramonvanalteren ramonvanalteren pushed a commit to ramonvanalteren/fabric that referenced this issue Aug 31, 2011
@bitprophet bitprophet Move --exclude-hosts docs into its own section, and update changelog/…
…AUTHORS

Re #170.
d15edb4
@ramonvanalteren ramonvanalteren pushed a commit to ramonvanalteren/fabric that referenced this issue Aug 31, 2011
@bitprophet bitprophet Beef up docs, add default env value re #170 aec6376
@npt npt pushed a commit that referenced this issue Sep 18, 2011
@goosemo goosemo Merged in Casey Banner's work for #170, Fixed conflicts and also made…
… a failing test pass.
2bb769d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment