- From: Kamil <
>
- To:
- Subject: [[chef-dev]] knife - create cookbook - subcommand doesn't exist
- Date: Fri, 18 Feb 2011 08:14:31 -0800 (PST)
Hi, I am developer, I want to make my life easier to prepare production envs
using Chef. This is my second post here.
Now I found an error in knife. So, walking through Chef Cookbook Quick Start
guide and I stopped at Create a new Cookbook called "quick_start". Guide says
that there is possibility to create new cookbook using knife command:
'knife cookbook create quick_start -o ./' but 'cookbook create' subcommand
doesn't exist. Knife's help doesn't list create as a subcommand:
Available are:
Sub-Command: cookbook bulk delete REGEX (options)
Sub-Command: cookbook delete COOKBOOK (options)
Sub-Command: cookbook download COOKBOOK (options)
-f, --file FILE The filename to write to
Sub-Command: cookbook list (options)
-w, --with-uri Show corresponding URIs
Sub-Command: cookbook metadata COOKBOOK (options)
-a, --all Generate metadata for all cookbooks,
rather than just a single cookbook
-o, --cookbook-path PATH:PATH A colon-separated path to look for
cookbooks in
Sub-Command: cookbook metadata from FILE (options)
Sub-Command: cookbook show COOKBOOK [PART] [FILENAME] (options)
-f, --fqdn FQDN The FQDN of the host to see the file for
-p, --platform PLATFORM The platform to see the file for
-V, --platform-version VERSION The platform version to see the file for
Sub-Command: cookbook site download COOKBOOK [VERSION] (options)
-f, --file FILE The filename to write to
Sub-Command: cookbook site list (options)
-w, --with-uri Show corresponding URIs
Sub-Command: cookbook site search QUERY (options)
Sub-Command: cookbook site show COOKBOOK [VERSION] (options)
Sub-Command: cookbook site vendor COOKBOOK [VERSION] (options)
-d, --dependencies Grab dependencies automatically
Sub-Command: cookbook test [COOKBOOKS...] (options)
-a, --all Test all cookbooks, rather than just a
single cookbook
-o, --cookbook-path PATH:PATH A colon-separated path to look for
cookbooks in
Sub-Command: cookbook upload [COOKBOOKS...] (options)
-a, --all Upload all cookbooks, rather than just a
single cookbook
-o, --cookbook-path PATH:PATH A colon-separated path to look for
cookbooks in
Instead of this rake command can be used : 'rake new_cookbook COOKBOOK=demo'.
Anyway, after that I still have problems with upload command which is
described
in another post:
http://help.opscode.com/discussions/problems/368-knife-upload-cookbook-from-local-repo-to-chef-server-webui-doesnt-work
Thank you.
regards, Kamil Kuliberda
btw.
I am using Ubuntu 10.10 on VMware, for server env and client env. Following
are
version list of installed packages:
Package: chef-server
Version: 0.8.16-4
Package: chef-server-webui
Version: 0.8.16-4
Package: chef-server-api
Version: 0.8.16-4
Package: chef
Version: 0.8.16-4
Package: chef-solr
Version: 0.8.16-4
Package: libchef-ruby1.8
Version: 0.8.16-4
- [[chef-dev]] knife - create cookbook - subcommand doesn't exist, Kamil, 02/18/2011
Archive powered by MHonArc 2.6.16.