A knife.rb file is used to specify configuration details for knife. a knife.rb file: is located by default at ~/.chef/knife.rb (unix cookbook_path ['/var/chef. --chef-repo-path path the following examples show how to use this knife subcommand: upload the entire chef-repo. $ knife upload cookbooks/apache * roles. Can't read the cookbook path in windows to figure out the syntax for "cookbook_path" in a windows knife cookbook_path ['/users/<user>/chef-repo.
Knife cookbook site knife will alert the user that the cookbook is deprecated and then will provide the name //supermarket.chef.io.-o path:path, --cookbook. The knife exec subcommand uses the knife configuration file to execute ruby scripts in the context of a fully configured chef-client. cookbook_path])} chef::. Always make sure you set your cookbook_path in knife.rb to something that makes sense for your working environment. people often get confused by how/where the ‘knife’ command is finding cookbooks during commands like “knife cookbook upload” or even “knife cookbooks create.”.
0 komentar:
Posting Komentar