Project

knife_sous

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Knife plugin for managing knife-solo nodes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.5
~> 10.1.0
~> 2.14.1

Runtime

~> 0.3.0
 Project Readme

Knife Sous

A Chef Knife plugin which uses a DSL to configure and manage knife-solo nodes.

Usage

Simply ensure the gem is installed using:

gem install knife_sous

Or add this to your Gemfile if you use bundler:

gem 'knife_sous'

Having the gem installed will add Knife subcommands. Run knife sous with no arguments to see a list of available commands.

Configure

Node configuration is done in nodes/nodes.rb. It uses a DSL similar to Rake. You can namespace your nodes however you want. Example nodes.rb:

namespace :production do |prod|
  prod.namespace :web do |web|
    web.node :nodetastic,
      node_config: 'nodes/some_node.json',
      hostname: 12.34.56.78,
      user: 'deploy',
      ssh_port: 1234
    end
  end
  prod.namespace :db do |db|
    db.node :database_node, node_config: 'nodes/database.json', hostname: 123.456.78
  end
end

node :vagrant, node_config:'nodes/some_node.json'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request