[chef] Re: Re: Re: How best to reprepresent a hosted site in Chef?


Chronological Thread 
  • From: Dmitry V'yal < >
  • To:
  • Subject: [chef] Re: Re: Re: How best to reprepresent a hosted site in Chef?
  • Date: Thu, 03 Jun 2010 00:31:16 +0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=ORV/CBLZxjmDDnqpuQzveuCmzCMtBNW8GWtcztYJ+B+00KMzhsSUpdIirivXCA+Eun L0oqFRqjE1Z4gP0BOt0cAxDAIVYv8I1l2Jh5aR51XZKoSUlMuMUgezDcrktd+dMFU+jB t7xKRSCXGWpUtNhd5Mv+LpT2Z2nqxD//FtHyo=



Ohai!

If the sites are all very similar except for some data, you can just
create them in a loop. Our documentation for libraries shows an
example of creating vhosts based on data in a SQL database:

http://wiki.opscode.com/display/chef/Libraries

If this looks appealing, but you don't currently have the data in a
database, you might want to use data bags to store the data:

http://wiki.opscode.com/display/chef/Data+Bags


Hello Daniel.

Data bags seem like a way to go. Now, speaking in terms of example at wiki page you gave, what if I want to remove some admins after I ran the recipe? I modify the bag, and what's next? Is there a way to give a more declarative semantics to things?

Best wishes,
Dmitry



Archive powered by MHonArc 2.6.16.

§