RubyGems Navigation menu

knife-zero 0.0.1

# Knife-Plugin Zero Run chef-client at remote node with chef-zero(local-mode) via HTTP over SSH port fowarding. - It doesn't have to transport cookbooks via scp,rsync or something. - It can collect node object into local chef-repo. - It supports all functioanly of chef(C/S). - You have only to manage one chef-repo. ## Requirements - Must support AllowTcpForward ## Installation > This gem has not been released yet. Add this line to your application's Gemfile: gem 'knife-zero' And then execute: $ bundle Or install it yourself as: $ gem install knife-zero ## Usage ``` ** ZERO COMMANDS ** knife zero bootstrap FQDN (options) ``` ### Bootstrap Install Chef to remote node and run chef-client under chef-zero via tcp-forward. Supported options are mostly the same as `knife bootstrap`. #### Example ``` $ bundle exec knife zero bootstrap host.example.com -r hogehoge::default --no-host-key-verify Connecting to host.example.com host.example.com Installing Chef Client... -- snip -- host.example.com Thank you for installing Chef! host.example.com Starting first Chef Client run... host.example.com Starting Chef Client, version 11.14.6 host.example.com Creating a new client identity for host.example.com using the validator key. ## Resolv and sync cookbook via http over ssh tcp-forward by run-list. host.example.com resolving cookbooks for run list: ["hogehoge::default"] host.example.com Synchronizing Cookbooks: host.example.com - hogehoge host.example.com Compiling Cookbooks... host.example.com Converging 0 resources host.example.com host.example.com Running handlers: host.example.com Running handlers complete host.example.com Chef Client finished, 0/0 resources updated in 4.895561879 seconds ## Creates node object into local. $ ls nodes/host.example.com.json nodes/host.example.com.json host.example.com ## Search by knife with --local--mode option. $ bundle exec knife search node --local-mode 1 items found Node Name: host.example.com Environment: _default FQDN: IP: xxx.xxx.xxx.xxx Run List: recipe[hogehoge::default] Roles: Recipes: hogehoge::default Platform: ubuntu 12.04 Tags: ``` ### SSH Search nodes from local chef-repo directory, and run command at remote node. Supported options are mostly the same as `knife ssh`. > Pending ## Contributing 1. Fork it ( https://github.com/[my-github-username]/knife-zero/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 ## License Licensed under the Apache License, Version 2.0.

Versions:

  1. 1.19.2 - February 28, 2018 (14.5 KB)
  2. 1.19.1 - January 04, 2018 (14 KB)
  3. 1.19.0 - July 26, 2017 (14 KB)
  4. 1.18.2 - July 06, 2017 (13.5 KB)
  5. 1.18.1 - May 26, 2017 (13.5 KB)
  6. 0.0.1 - August 21, 2014 (11.5 KB)
Show all versions (65 total)

Runtime Dependencies (1):

Development Dependencies (2):

Authors:

  • sawanoboly

Owners:

1b05d5de54a5fd1e010508905be56a6b

SHA 256 checksum:

d5ab1e979b209fc33a1d2a4f4bd3b29f1f81445a61ddd819c63c1620cd30103a

Total downloads 87,412

For this version 1,044

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

Apache2

Required Ruby Version: >= 0

Links: