Knife cookbook usage


#1

Hi,
After reading http://help.opscode.com/faqs/chefbasics/knife
I was expecting to see something like knife cookbook add <cb> or
maybe knife cookbook import <cb>

So I wonder if knife supports using cookbooks that are not obtained
via Knife’s ‘cookbook create’ or ‘cookbook download’?
Specifically I’d like to have cookbooks in my chef-repo that brought
into the folder by something other than knife.
Is this a supported use case?

Best wishes


πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com


#2

On Thu, Dec 2, 2010 at 4:04 PM, Hedge Hog hedgehogshiatus@gmail.com wrote:

So I wonder if knife supports using cookbooks that are not obtained
via Knife’s ‘cookbook create’ or ‘cookbook download’?
Specifically I’d like to have cookbooks in my chef-repo that brought
into the folder by something other than knife.
Is this a supported use case?

From knife’s point of view, a cookbook is just a collection of files
with the right directory structure. It doesn’t matter if they were
obtained by extracting a tarball, rsync-ing from a remote source, your
version control system, or any other means. The knife commands that
are there are just a convenience to make common workflows easier.

Best wishes


πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com

Dan DeLeo


#3

On Fri, Dec 3, 2010 at 11:10 AM, Daniel DeLeo dan@kallistec.com wrote:

On Thu, Dec 2, 2010 at 4:04 PM, Hedge Hog hedgehogshiatus@gmail.com wrote:

So I wonder if knife supports using cookbooks that are not obtained
via Knife’s ‘cookbook create’ or ‘cookbook download’?
Specifically I’d like to have cookbooks in my chef-repo that brought
into the folder by something other than knife.
Is this a supported use case?

From knife’s point of view, a cookbook is just a collection of files
with the right directory structure. It doesn’t matter if they were
obtained by extracting a tarball, rsync-ing from a remote source, your
version control system, or any other means. The knife commands that
are there are just a convenience to make common workflows easier.

Fantastic. Thanks.

Best wishes


πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com

Dan DeLeo


πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com