[chef] 'parameterize' recipies


Chronological Thread 
  • From: erich oliphant < >
  • To:
  • Subject: [chef] 'parameterize' recipies
  • Date: Thu, 8 Apr 2010 12:47:05 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ftl00Izs+cl3V7x5qYMWTFc9DFACZ0IxbkLp0VpXMChGziBE2E2NSySVoEyNc3TgdH YjWA7VayW+Di7K6MUxM0z3z6jXm3uI7yldt/PSi64VG34igOHO+hzMvIntsanSqkRww3 HRp4MrkYVmZnVJuXixGgHAm9vta9q/MJ9iD7g=

Hi,
I am new to chef, have been through the examples,etc and have quick question.  Running a recipe seems to be 'idempotent', you run it once it does it's thing, if you rerun and the 'target' has not changed it won't do anything.  I am trying to understand how I can use chef for dynamic provisioning.  For instance, I have an apache virtual server template, but I want to be able to run the same recipe but have it create a virtual host at 'foo.domain.com', whose DocumentRoot is '/vhosts/foo', etc based on somehow passing in 'foo' to the cookbook.

--
Erich Oliphant

"There are, in fact, two things, science and opinion, the former begets knowledge, the latter ignorance"
-- Hippocrates of Cos



Archive powered by MHonArc 2.6.16.

§