[chef] Setting up service with huge data files?


Chronological Thread 
  • From: Christopher DeMarco < >
  • To: " " < >
  • Subject: [chef] Setting up service with huge data files?
  • Date: Sun, 23 Sep 2012 21:07:24 -0400

So I want to provision a service for a custom app we've got.  I can template an initscript/launchd_plist, and put all my listening ports, identifying strings etc. into data bags, etc… but until I've got the datafile on disk I can't start the service.  

The datafile will be anywhere from 100GB to 2TB - far too big to provision during a chef run, and since it's being seeded from an existing host I won't have it in advance anyway.

What's the best way to proceed with something like this?  

My current best-thinking is to write a recipe with a data bag attribute "filename to look for", such that if the datafile doesn't exit the recipe doesn't do certain things until it finds the file… 

Suggestions?

--cmd






Archive powered by MHonArc 2.6.16.

§