Project

sous-chef

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Manage 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.1
~> 10.0.0
~> 2.12.0

Runtime

~> 0.2.0
~> 10.0.0
 Project Readme

Sous Chef

Rake Tasks for managing knife-solo nodes.

I've stopped work in favor of a knife plugin, knife_sous

Usage

Simply ensure the gem is installed using:

gem install sous-chef

Or add this to your Gemfile if you use bundler:

gem 'sous-chef'

And add the following to your Rakefile:

  require 'sous-chef'

Run rake sous_chef:init to place a sample nodes.yml under nodes/nodes.yml

Run rake -T to display nodes and commands defined in nodes/nodes.yml

Configure

Node configuration is done in nodes/nodes.yml. You can namespace your nodes however you want. You can run multiple tasks in parallel using the :all: namespace Example nodes.yml:

# Format:
#
# <environment>:
#   <other-namespace>:
#     <node name>:
#       node_config: <knife-solo node config e.g. nodes/someNode.json>
#       ssh_config:
#         <ssh config options>
#         e.g.
#         Host: <host alias. defaults to node name>
#         HostName: 12.34.56.789
#         Port: 1234
#         IdentityFile: ~/.ssh/other_id_rsa

production:
  web:
    SuperAwesomeNode:
      node_config: nodes/some_node.json
      ssh_config:
        HostName: 12.34.56.789
        Port 1234
        IdentityFile: ~/.ssh/other_id_rsa
staging:
  CoolWorld:
    node_config: nodes/some_node.json
    ssh_config:
      HostName: localhost

vagrant:
  node_config: nodes/buildAgent.json
  ssh_config:
    HostName: 127.0.0.1
    User: vagrant
    Port: 2222
    UserKnownHostsFile: /dev/null
    StrictHostKeyChecking: "no"
    PasswordAuthentication: "no"
    IdentityFile: "~/.vagrant.d/insecure_private_key"
    IdentitiesOnly: "yes"
    ForwardAgent: "yes"

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