Knife plugin to batch ssh commands across hosts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.markdown
Rakefile
knife-batch.gemspec

README.markdown

knife batch

knife batch is a wonderful little plugin for executing commands a la knife ssh, but doing it in groups of n with a sleep between execution iterations.

Installation

gem install knife-batch

Usage

knife batch works exactly like knife ssh but with a couple of additional options. knife batch "role:cluster" "whoami" -B 10 -W 5 will execute whoami against 10 servers with a sleep of 5 seconds in between.

-B INTEGER defines how many servers at max will be batched. -W INTEGER defines the time to sleep in between executions.