Project

paknife

0.0
No commit activity in last 3 years
No release in over 3 years
Run knife-solo in parallel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

Paknife

Run knife-solo in parallel.

$ paknife [<options>] <backend> <subcommand> <nodes> [<knife_options>]

Requirements

Installation

gem 'paknife'

And then execute:

$ bundle

Or install it yourself as:

$ gem install paknife

Usage

You can run knife solo cook in parallel like:

$ paknife solo cook node1 node2 node3 node4

By default, it runs bundle exec knife solo cook node1 and so on in two threads.

paknife may work with knife-zero like below, but isn't well tested yet:

$ paknife zero cook node1 node2

Knife's original options

You can pass knife-solo's (or knife-zero's) original options after nodes arguments like:

$ paknife solo cook node1 node2 -i /path/to/your/pem

Number of threads

You can specify the number of threads with --threads VALUE and -t VALUE options like:

$ paknife --threads 4 solo cook node1 node2 node3 node4

or

$ paknife --threads max solo cook node1 node2 nod3 node4

where max means "the number of nodes".

This feature is also available with PAKNIFE_THREADS environment variable like:

$ export PAKNIFE_THREADS=max
$ paknife solo cook node1 node2 node3 node4

Knife command

You can specify knife command with --knife VALUE and -k VALUE options like:

$ paknife --knife="/path/to/your/knife" solo cook node1 node2

This feature is also available with PAKNIFE_KNIFE environment variable like:

$ export PAKNIFE_KNIFE=/path/to/your/knife
$ paknife solo cook node1 node2

Contributing

  1. Fork it ( https://github.com/a2ikm/paknife/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request