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.

Gemfile:
=

安裝:
=

版本列表:

  1. 2.5.2 April 04, 2023 (16.0 KB)
  2. 2.5.1 March 16, 2023 (16.0 KB)
  3. 2.5.0 February 19, 2023 (16.0 KB)
  4. 2.4.2 October 29, 2021 (15.5 KB)
  5. 2.4.1 September 28, 2021 (15.5 KB)
  6. 0.0.1 August 21, 2014 (11.5 KB)
顯示所有版本(共 87)

Runtime 相依性套件 (1):

chef ~> 11.8

Development 相依性套件 (2):

bundler ~> 1.6
rake >= 0

擁有者:

作者:

  • sawanoboly

SHA 256 總和檢查碼:

=

總下載次數 382,256

這個版本 2,527

版本发布:

授權:

Apache2

Ruby 版本需求: >= 0

相關連結: