[chef] Changing a cookbook's folder-name - how painful?


Chronological Thread 
  • From: Hedge Hog < >
  • To:
  • Subject: [chef] Changing a cookbook's folder-name - how painful?
  • Date: Wed, 8 Dec 2010 20:33:29 +1100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=PPDZdvbMxSx22u/f5qewEub2W5SWrTL7WhjxB2sqaqsRmgvpRUudaPo8Lp569bJdVA 9Hqj9MAkf1Nl2D/kZPwhP28/OrCdDoX/cWDxY+fDxziPfTJ3/vdKkFpA691Va5JIKKvr 8CP/vx4Q3QPmrM4lFMS027I0UhWScaCu9n3YM=

Hi,
I'm in the process or revisiting my idea to use Bundler to manage
groups of individual cookbooks in to ./chef-repo/cookbooks.
I've made some progress.  Hence I have a couple of questions:
- If I change a cookbook's folder name (i.e. under
./chef-repo/cookbooks), where am I going to have propagate that
change?  E.g. cookbooks/apache2 -> cookbooks/apache2-<hash>. So far I
can guess a couple of places, but it would be nice to have a list of
everywhere that change must be made.
- Is there a way or one place to map a cookbook's folder name to some
name that is referenced else where?  Some way of abusing Role's
override_attributes or some such thing?
- WRT to Chef environments, will these map to a folder structure under
the cookbooks folder, e.g. cookbooks/prod/apache2-<hash1>,
cookbooks/staging/apache2-<hash2>

Appreciate any insights.

-- 
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[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



Archive powered by MHonArc 2.6.16.

§