[chef] Load only definitions into my cookbook recipe


Chronological Thread 
  • From: Prajwal Manjunath < >
  • To:
  • Subject: [chef] Load only definitions into my cookbook recipe
  • Date: Mon, 20 May 2013 16:59:59 +0530

I'm trying to use the nginx cookbook, which comes with a definition to "enable" sites.
I have a separate recipe for my application, which creates the nginx config for the app, and puts it in sites-available. I then try to use nginx_site definition.

The problem is, to do this, I have to "include_recipe 'nginx'"

This is problematic for me since I've configured it to install from source, and thus it recompiles nginx each time i try to deploy my app.

Is it possible to load only the definitions of the nginx cookbook into my recipe, so the nginx::default recipe doesn't run?



Archive powered by MHonArc 2.6.16.

§